@clickview/online 0.0.9-rc.0 → 0.0.10-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/en.json +1 -1
  3. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
  4. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
  5. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
  6. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
  7. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
  8. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
  9. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  10. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
  11. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  12. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  13. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  14. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  15. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  16. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  17. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  18. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  19. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  20. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  21. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  22. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  23. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  24. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  25. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
  26. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  27. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  28. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  29. package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +2 -2
  30. package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
  31. package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
  32. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
  33. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  34. package/dist/libs/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
  35. package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
  36. package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
  37. package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +4 -0
  38. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +15 -0
  39. package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +7 -0
  40. package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +30 -0
  41. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +66 -0
  42. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
  43. package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +1 -0
  44. package/dist/libs/shared/src/components/channel-form-field/ChannelFormField.d.ts +8 -0
  45. package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +20 -0
  46. package/dist/libs/shared/src/components/edit-link/EditLink.d.ts +26 -0
  47. package/dist/libs/shared/src/components/edit-resource/EditResource.d.ts +15 -0
  48. package/dist/libs/shared/src/components/edit-video-links/EditVideoLinks.d.ts +11 -0
  49. package/dist/libs/shared/src/components/edit-video-resources/EditVideoResources.d.ts +20 -0
  50. package/dist/libs/shared/src/components/edit-video-subtitles/EditVideoSubtitles.d.ts +16 -0
  51. package/dist/libs/shared/src/components/file-select/FileSelect.d.ts +14 -0
  52. package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +15 -0
  53. package/dist/libs/shared/src/components/file-upload-list/FileUploadList.d.ts +8 -0
  54. package/dist/libs/shared/src/components/forms/date-picker-form-field/DatePickerFormField.d.ts +17 -0
  55. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  56. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  57. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  58. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  59. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  60. package/dist/libs/shared/src/components/image-cropper/ImageCropper.d.ts +10 -0
  61. package/dist/libs/shared/src/components/image-select/ImageSelect.d.ts +14 -0
  62. package/dist/libs/shared/src/components/language-select/LanguageSelect.d.ts +8 -0
  63. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
  64. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  65. package/dist/libs/shared/src/components/rating-select/RatingSelect.d.ts +12 -0
  66. package/dist/libs/shared/src/components/resource-list/ResourceList.d.ts +14 -0
  67. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
  68. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
  69. package/dist/libs/shared/src/components/subtitle-list/SubtitleList.d.ts +9 -0
  70. package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
  71. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +2 -2
  72. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
  73. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
  74. package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
  75. package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +2 -2
  76. package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
  77. package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
  78. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  79. package/dist/libs/shared/src/constants/ImageSizes.d.ts +8 -0
  80. package/dist/libs/shared/src/context/ImageStorageContext.d.ts +45 -0
  81. package/dist/libs/shared/src/enums/DateFormat.d.ts +7 -0
  82. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
  83. package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +4 -0
  84. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  85. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
  86. package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +4 -0
  87. package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
  88. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  89. package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
  90. package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +7 -0
  91. package/dist/libs/shared/src/flight-requests/LinkRequests.d.ts +11 -0
  92. package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +1 -0
  93. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
  94. package/dist/libs/shared/src/flight-requests/RatingRequests.d.ts +4 -0
  95. package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +11 -0
  96. package/dist/libs/shared/src/flight-requests/SubtitleRequests.d.ts +9 -0
  97. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
  98. package/dist/libs/shared/src/hooks/UseListenOn.d.ts +3 -0
  99. package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +7 -0
  100. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  101. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  102. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  103. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  104. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  105. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  106. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  107. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  108. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  109. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  110. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  111. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  112. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  113. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  114. package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
  115. package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
  116. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
  117. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  118. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
  119. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  120. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  121. package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
  122. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  123. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  124. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  125. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
  126. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +4 -0
  127. package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
  128. package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +29 -0
  129. package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +15 -0
  130. package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +22 -0
  131. package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +17 -0
  132. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
  133. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
  134. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
  135. package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +5 -0
  136. package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
  137. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  138. package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +6 -0
  139. package/dist/libs/shared/src/utils/PermissionsHelper.d.ts +10 -0
  140. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
  141. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  142. package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
  143. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +18 -0
  144. package/dist/libs/shared/src/views/delete-link/DeleteLinkView.d.ts +8 -0
  145. package/dist/libs/shared/src/views/delete-resource/DeleteResourceView.d.ts +8 -0
  146. package/dist/libs/shared/src/views/delete-subtitle/DeleteSubtitleView.d.ts +8 -0
  147. package/dist/libs/shared/src/views/dialog/DialogView.d.ts +9 -0
  148. package/dist/libs/shared/src/views/edit-link/EditLinkView.d.ts +8 -0
  149. package/dist/libs/shared/src/views/edit-resource/EditResourceView.d.ts +8 -0
  150. package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
  151. package/dist/online-app.css +21 -3
  152. package/dist/online-app.js +33 -3
  153. package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
  154. package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
  155. package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
  156. package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
  157. package/dist/projects/online/src/apps/workspace/WorkspaceApplication.d.ts +19 -0
  158. package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/EditWorkspaceVideoDetails.d.ts +9 -0
  159. package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/partial-loading/PartialEditWorkspaceVideoDetails.d.ts +2 -0
  160. package/dist/projects/online/src/apps/workspace/context/WorkspaceAppContext.d.ts +3 -0
  161. package/dist/projects/online/src/apps/workspace/flight-requests/WorkspaceVideoRequests.d.ts +9 -0
  162. package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/EditWorkspaceVideoView.d.ts +8 -0
  163. package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/partial-loading/PartialEditVideoUploadArea.d.ts +2 -0
  164. package/dist/projects/online/src/index.d.ts +28 -2
  165. package/dist/projects/online/src/shared/constants/Actions.d.ts +14 -3
  166. package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
  167. package/dist/projects/online/src/shared/identifiers/DataIdentifier.d.ts +1 -1
  168. package/dist/projects/online/src/shared/identifiers/WidgetCollectionIdentifier.d.ts +3 -3
  169. package/dist/projects/online/src/shared/identifiers/primitives/ServiceOptions.d.ts +2 -2
  170. package/dist/projects/online/src/shared/interfaces/SharedObject.d.ts +2 -1
  171. package/dist/projects/online/src/shared/layouts/LayoutComponent.d.ts +1 -1
  172. package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
  173. package/dist/projects/online/src/shared/utils/PopupHelper.d.ts +1 -1
  174. package/package.json +4 -3
  175. package/tooling/externals.js +3 -0
  176. package/typings/libs/CVEvents.d.ts +1 -1
  177. package/typings/libs/CVLanguages.d.ts +24 -0
  178. package/typings/libs/LazyLoad.d.ts +1 -1
  179. package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
  180. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  181. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
  182. package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
  183. package/dist/projects/online/src/shared/hooks/UseListenOn.d.ts +0 -4
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { Core } from "../../../../../../common/src/backbone";
3
3
  import { WidgetContext, Video } from "../../../../interfaces";
4
- import { ThumbnailSize } from "../../../../enums/ThumbnailSize";
4
+ import { ImageSize } from "../../../../enums/Images";
5
5
  import { AnalyticsOptions, HashObject } from "../../../../../../analytics/src/interfaces";
6
6
  interface VideoWidgetItemProps {
7
7
  data: Video;
8
8
  appLink: Core.AppLink;
9
9
  seriesAppLink: Core.AppLink;
10
10
  context: WidgetContext;
11
- thumbnailSize: ThumbnailSize;
11
+ thumbnailSize: ImageSize;
12
12
  onHover: (isHovering: boolean) => void;
13
13
  preloadImage?: boolean;
14
14
  analyticsData?: HashObject;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { CssMeasurement } from "../../../enums/CssMeasurement";
3
- interface SlidingListContainerProps extends React.PropsWithChildren<{}> {
3
+ interface SlidingListContainerProps extends React.PropsWithChildren<unknown> {
4
4
  position: number;
5
5
  positionType: CssMeasurement;
6
6
  onDrag?: (event: React.DragEvent<HTMLDivElement>) => void;
@@ -10,6 +10,7 @@ interface WidgetButtonProps {
10
10
  hide: boolean;
11
11
  contents?: WidgetContents;
12
12
  useGradientBackdrop?: boolean;
13
+ className?: string;
13
14
  }
14
15
  export declare const WidgetButton: React.NamedExoticComponent<WidgetButtonProps>;
15
16
  export {};
@@ -2,5 +2,6 @@ declare const BootstrapKeys: {
2
2
  LOCALE: string;
3
3
  PHRASES: string;
4
4
  VERSION: string;
5
+ TOKEN: string;
5
6
  };
6
7
  export { BootstrapKeys };
@@ -0,0 +1,8 @@
1
+ interface IImageMinDimensions {
2
+ width: number;
3
+ height: number;
4
+ }
5
+ export declare const ImageMinDimensions: {
6
+ [index: string]: IImageMinDimensions;
7
+ };
8
+ export {};
@@ -0,0 +1,45 @@
1
+ import * as React from 'react';
2
+ import { Image } from "../interfaces";
3
+ /**
4
+ * This context is used for transferring image
5
+ * data between different areas of the application.
6
+ *
7
+ * It stores base64 image files that have been read
8
+ * in from ImageSelect component for the purpose of
9
+ * being cropped and uploaded in ImageUploadView.
10
+ *
11
+ * Image objects uploaded in ImageUploadView can then be
12
+ * stored in the context for use in the component
13
+ * that initially requested the upload.
14
+ */
15
+ interface IImageStorageContext {
16
+ /**
17
+ * Retrieve the stored base64 dataUrl. This will
18
+ * reset the stored value after it is read.
19
+ */
20
+ getDataUrl: () => string;
21
+ /**
22
+ * Set the stored dataUrl.
23
+ */
24
+ setDataUrl: (dataUrl: string) => void;
25
+ /**
26
+ * Retrieve the stored image object. This will
27
+ * reset the stored image object.
28
+ */
29
+ getImage: () => Image;
30
+ /**
31
+ * Store an image after it has been successfully
32
+ * uploaded.
33
+ */
34
+ setImage: (image: Image) => void;
35
+ /**
36
+ * Flag to notify anything using this context
37
+ * that an image has been uploaded.
38
+ */
39
+ imageUploaded: boolean;
40
+ }
41
+ export declare const ImageStorageContext: React.Context<IImageStorageContext>;
42
+ export declare const ImageStorageContextProvider: ({ children }: {
43
+ children?: React.ReactNode;
44
+ }) => JSX.Element;
45
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * For date formats see:
3
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
4
+ */
5
+ export declare enum DateFormat {
6
+ FullYear = "d MMMM yyyy"
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum MasterObjectTypes {
2
+ Folder = "category",
3
+ CategoryTree = "category_tree",
4
+ CustomLibrary = "custom_library",
5
+ HostedLibrary = "hosted_library",
6
+ Exchange = "exchange",
7
+ Workspace = "workspace"
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ObjectOwnerType {
2
+ Customer = 1,
3
+ ClickView = 2
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ObjectStatus {
2
+ Disabled = 0,
3
+ Active = 1,
4
+ Inactive = 2
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PlayerMediaType {
2
+ MasterInteractive = "MasterInteractive",
3
+ MasterVideo = "MasterVideo"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum InteractionType {
2
+ FileSelect = "file-select",
3
+ DragDrop = "drag-drop"
4
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum UserGroup {
2
- Learner = "learner",
3
- Staff = "staff"
2
+ Unknown = 0,
3
+ Staff = 1,
4
+ Learner = 2
4
5
  }
@@ -5,5 +5,6 @@ export declare enum WidgetContents {
5
5
  Playlists = "playlists",
6
6
  UserChannels = "user channels",
7
7
  Interactives = "interactives",
8
- Clips = "clips"
8
+ Clips = "clips",
9
+ Resources = "resources"
9
10
  }
@@ -1,4 +1,6 @@
1
1
  import { Flight } from "../../../common/src/react";
2
+ import { Config } from '../interfaces';
2
3
  export declare const ConfigRequests: {
3
- config: Flight.Request;
4
+ config(success?: (config: Config) => void, error?: () => void): Flight.Request;
5
+ version(success?: (version: any) => void, error?: () => void): Flight.Request;
4
6
  };
@@ -0,0 +1,7 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
3
+ import { HashObject } from "../../../common/src/react/interfaces";
4
+ import { ImageType } from "../enums/Images";
5
+ export declare const ImageRequests: {
6
+ uploadBase64Image(dataUrl: string, type: ImageType, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
7
+ };
@@ -0,0 +1,11 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { HashObject } from "../../../common/src/react/interfaces/HashObject";
3
+ import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
4
+ import { Link } from "../interfaces";
5
+ export declare const LinkRequests: {
6
+ link(id: string): Flight.Request;
7
+ videoLinks(videoId: string): Flight.Request;
8
+ addLink(videoId: string, link: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
9
+ updateLink(id: string, data: Link, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
10
+ deleteLink(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
11
+ };
@@ -22,4 +22,5 @@ export declare const PlaylistRequests: {
22
22
  getPlaylistPrivacy(playlistId: string): Flight.Request;
23
23
  updatePlaylistPrivacy(playlistId: string, privacy: PlaylistPrivacy, success?: (data: any) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
24
24
  getMigrationTask(success?: (data: any) => void, error?: (xhr: Xhr) => void): Flight.Request;
25
+ copyPlaylist(id: string, success?: (data: any) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
25
26
  };
@@ -7,7 +7,7 @@ export declare const PreferenceRequests: {
7
7
  */
8
8
  currentPresentations(type?: PresentationType): Flight.Request;
9
9
  availablePresentations(type?: PresentationType): Flight.Request;
10
- setPresentation(presentation: Presentation, type: PresentationType, success?: () => void): Flight.Request;
10
+ setPresentation(presentation: Presentation, type: PresentationType, success?: () => void, error?: () => void): Flight.Request;
11
11
  /**
12
12
  * Subjects
13
13
  */
@@ -0,0 +1,4 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ export declare const RatingRequests: {
3
+ ratings(): Flight.Request;
4
+ };
@@ -0,0 +1,11 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { HashObject } from "../../../common/src/react/interfaces/HashObject";
3
+ import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
4
+ import { UpdateResourceRequest } from "../interfaces";
5
+ export declare const ResourceRequests: {
6
+ resource(id: string): Flight.Request;
7
+ videoResources(videoId: string): Flight.Request;
8
+ addResource(videoId: string, resource: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
9
+ updateResource(id: string, data: UpdateResourceRequest, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
10
+ deleteResource(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
11
+ };
@@ -0,0 +1,9 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { HashObject } from "../../../common/src/react/interfaces/HashObject";
3
+ import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
4
+ export declare const SubtitleRequests: {
5
+ subtitle(id: string): Flight.Request;
6
+ videoSubtitles(videoId: string): Flight.Request;
7
+ addSubtitle(videoId: string, subtitle: any, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
8
+ deleteSubtitle(id: string, videoId: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
9
+ };
@@ -1,7 +1,9 @@
1
1
  import { Flight } from "../../../common/src/react";
2
2
  import { CurrentUser } from "../interfaces";
3
+ import { HashObject } from "../../../common/src/react/interfaces";
3
4
  export declare const UserRequests: {
4
5
  currentUser(success?: (user: CurrentUser) => void, error?: () => void): Flight.Request;
5
- workspace: Flight.Request;
6
+ workspace(success?: (workspace: HashObject<any>) => void, error?: () => void): Flight.Request;
6
7
  sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
8
+ token(success?: (token: HashObject<any>) => void, error?: () => void): Flight.Request;
7
9
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="backbone.radio" />
2
+ import { Radio, Model, Collection } from 'backbone';
3
+ export declare const useListenOn: (obj: Radio.Channel | Model | Collection<Model>, eventName: string, callback: (obj?: any) => void) => void;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Core } from "../../../common/src/backbone";
3
+ /**
4
+ * Hook used to listen to updates on a Backbone Collection
5
+ * and trigger a re-render.
6
+ */
7
+ export declare function useGetCollectionItems<T>(getCollection: () => Core.Collection, onRemove?: () => void, dependencies?: React.DependencyList): T[];
@@ -81,5 +81,7 @@ export declare enum localSvgs {
81
81
  Tag = "tag",
82
82
  Email = "email",
83
83
  YearLevel = "year-level",
84
- Subjects = "subjects"
84
+ Subjects = "subjects",
85
+ Download = "download",
86
+ Print = "print"
85
87
  }
@@ -19,4 +19,6 @@ import VisibleOn from './visible-on.svg';
19
19
  import NoEdit from './no-edit.svg';
20
20
  import EditClickView from './edit-clickview.svg';
21
21
  import Share2 from './share2.svg';
22
- export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2 };
22
+ import Download from './download.svg';
23
+ import Print from './print.svg';
24
+ export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2, Download, Print };
@@ -0,0 +1,3 @@
1
+ import { BasePaginatedCollection, Subtitle } from "./..";
2
+ export interface SubtitleCollection extends BasePaginatedCollection<Subtitle> {
3
+ }
@@ -19,3 +19,4 @@ export * from './LinkCollection';
19
19
  export * from './ClipCollection';
20
20
  export * from './FolderCollection';
21
21
  export * from './CustomerCollection';
22
+ export * from './SubtitleCollection';
@@ -5,7 +5,9 @@ export interface Config extends BaseObject {
5
5
  imageCdnUrl: string;
6
6
  countryCode: CountryCode;
7
7
  webPlayerUrl: string;
8
+ gatewayApiUrl: string;
8
9
  notificationServiceUrl?: string;
9
10
  collectionApiUrls?: RegionalUrl;
10
11
  collectionApiClientId?: string;
12
+ playerApiUrl?: string;
11
13
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Interface for a file uploaded
3
+ * to FileApi
4
+ */
5
+ export interface FileUpload {
6
+ id: string;
7
+ file: {
8
+ cvUpload: {
9
+ uploadId: string;
10
+ ingestUrl: string;
11
+ };
12
+ };
13
+ fileInfo: {
14
+ id: string;
15
+ name: string;
16
+ extension: string;
17
+ size: number;
18
+ url: string;
19
+ };
20
+ }
@@ -1,7 +1,9 @@
1
1
  import { BaseObject } from "./..";
2
2
  import { GlanceFormat } from "../../enums/GlanceFormat";
3
+ import { ThemeType } from "../../enums/ThemeType";
3
4
  export interface Glance extends BaseObject {
4
5
  theme: string;
5
6
  format: GlanceFormat;
6
7
  content: string;
8
+ type: ThemeType;
7
9
  }
@@ -0,0 +1,4 @@
1
+ export interface Language {
2
+ code: string;
3
+ name: string;
4
+ }
@@ -1,3 +1,4 @@
1
1
  import { BaseObject } from "./..";
2
2
  export interface Link extends BaseObject {
3
+ url: string;
3
4
  }
@@ -0,0 +1,4 @@
1
+ import { BaseObject } from './primitives';
2
+ export interface Pdf extends BaseObject {
3
+ url: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface PlayerViewKey {
2
+ viewKey: string;
3
+ }
@@ -1,9 +1,17 @@
1
1
  import { BaseObject } from './primitives';
2
- interface ResourceMatadata {
3
- type: string;
2
+ import { Thumbnail } from './Thumbnail';
3
+ import { FileType } from "../../utils/VideoDetailsHelper";
4
+ import { Pdf } from './Pdf';
5
+ export declare type ResourceType = 'teacher-pack' | 'student-activity' | 'additional-materials' | 'atom-guide';
6
+ interface ResourceMetadata {
7
+ type: FileType;
8
+ resourceType?: ResourceType;
4
9
  }
5
10
  export interface Resource extends BaseObject {
6
11
  url: string;
7
- metadata: ResourceMatadata;
12
+ metadata: ResourceMetadata;
13
+ fileId: string;
14
+ thumbnail: Thumbnail;
15
+ pdf?: Pdf;
8
16
  }
9
17
  export {};
@@ -0,0 +1,7 @@
1
+ import { BaseObject } from './primitives';
2
+ export interface Subtitle extends BaseObject {
3
+ language: string;
4
+ metadata: {
5
+ autoGenerated?: boolean;
6
+ };
7
+ }
@@ -1,3 +1,6 @@
1
1
  import { Image } from "./..";
2
2
  export interface Thumbnail extends Image {
3
+ metadata?: {
4
+ rotation?: number;
5
+ };
3
6
  }
@@ -2,7 +2,10 @@ import { BaseObject, Group, Avatar } from "./..";
2
2
  import { UserRole } from "../../enums/UserRole";
3
3
  import { CustomerType } from "../../enums/CustomerType";
4
4
  import { OnlineUserRole } from "../../enums/UserRole";
5
+ import { UserGroup } from "../../enums/UserGroup";
6
+ import { ObjectStatus } from "../../enums/ObjectStatus";
5
7
  import { CustomerCollection } from '../collections';
8
+ export declare type YearGroup = 'Kindergarten' | 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Year 6' | 'Year 7' | 'Year 8' | 'Year 9' | 'Year 10' | 'Year 11' | 'Year 12' | 'Year 13' | 'Staff';
6
9
  /**
7
10
  * Master User
8
11
  */
@@ -13,10 +16,14 @@ export interface User extends BaseObject {
13
16
  bio: string;
14
17
  email: string;
15
18
  username: string;
16
- status: string;
19
+ status: ObjectStatus;
17
20
  role: UserRole;
18
21
  customers: CustomerCollection;
22
+ yearGroup: YearGroup;
23
+ userType: UserGroup;
19
24
  avatar?: Avatar;
25
+ isPrimaryContact: boolean;
26
+ roleId: OnlineUserRole;
20
27
  }
21
28
  export interface CuratorUser extends User {
22
29
  userId: string;
@@ -47,3 +47,7 @@ export * from './UserChannel';
47
47
  export * from './Group';
48
48
  export * from './VideoHistory';
49
49
  export * from './EntitySetting';
50
+ export * from './Subtitle';
51
+ export * from './Language';
52
+ export * from './FileUpload';
53
+ export * from './PlayerViewKey';
@@ -0,0 +1,5 @@
1
+ import { PlayerMediaType } from "../../enums/PlayerMediaType";
2
+ export interface CreateViewKeyRequest {
3
+ mediaId: string;
4
+ mediaType: PlayerMediaType;
5
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateObjectChannel {
2
+ id: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateObjectRating {
2
+ id: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateResourceRequest {
2
+ name: string;
3
+ }
@@ -1,5 +1,9 @@
1
+ import { UpdateObjectRating, UpdateObjectChannel, Thumbnail } from "./..";
1
2
  export interface UpdateVideoRequest {
2
- id: string;
3
3
  name: string;
4
4
  description?: string;
5
+ rating: UpdateObjectRating;
6
+ dateBroadcast?: string;
7
+ channel?: UpdateObjectChannel;
8
+ thumbnail?: Thumbnail;
5
9
  }
@@ -1,2 +1,6 @@
1
+ export * from './CreateViewKeyRequest';
1
2
  export * from './ReorderRequest';
3
+ export * from './UpdateObjectChannel';
4
+ export * from './UpdateObjectRating';
5
+ export * from './UpdateResourceRequest';
2
6
  export * from './UpdateVideoRequest';
@@ -0,0 +1,5 @@
1
+ import { Config } from "./..";
2
+ export interface BaseConfigDataService {
3
+ getConfig(success?: (config: Config) => void, error?: () => void): void;
4
+ getVersion(success?: (version: string) => void, error?: () => void): void;
5
+ }
@@ -1,4 +1,6 @@
1
1
  import { CurrentUser } from "./..";
2
+ import { HashObject } from "../../../../common/src/react/interfaces";
2
3
  export interface BaseUserDataService {
3
4
  getCurrentUser(success?: (user: CurrentUser) => void, error?: () => void): void;
5
+ getWorkspace(success?: (workspace: HashObject) => void, error?: () => void): void;
4
6
  }
@@ -4,3 +4,4 @@ export * from './BaseLibraryDataService';
4
4
  export * from './BaseSeriesDataService';
5
5
  export * from './BaseSettingsDataService';
6
6
  export * from './BaseUserDataService';
7
+ export * from './BaseConfigDataService';
@@ -0,0 +1,19 @@
1
+ import { Core } from "../../../../../common/src/backbone";
2
+ import { ObjectHash } from 'backbone';
3
+ interface FileDropBehaviorOptions {
4
+ channelName: string;
5
+ acceptMultiple: boolean;
6
+ }
7
+ export declare class FileDropBehavior extends Core.Behavior {
8
+ options: FileDropBehaviorOptions;
9
+ private locked;
10
+ initialize(): void;
11
+ get events(): ObjectHash;
12
+ private lock;
13
+ private unlock;
14
+ /**
15
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop
16
+ */
17
+ private onDrop;
18
+ }
19
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const FileDropHelper: {
2
+ isFileDrag(event: any): boolean;
3
+ };
4
+ export { FileDropHelper };
@@ -0,0 +1,16 @@
1
+ import { Core } from "../../../../../common/src/backbone";
2
+ import { ObjectHash } from 'backbone';
3
+ interface FileSelectBehaviorOptions {
4
+ buttonSelector?: string;
5
+ channelName: string;
6
+ acceptMultiple: boolean;
7
+ mimeType: string;
8
+ }
9
+ export declare class FileSelectBehavior extends Core.Behavior {
10
+ options: FileSelectBehaviorOptions;
11
+ events(): ObjectHash;
12
+ private onClickSelect;
13
+ private onChangeFileSelect;
14
+ onRender(): void;
15
+ }
16
+ export {};
@@ -0,0 +1,29 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from "../../../../../common/src/backbone";
3
+ interface FileSelectComponentOptions extends Core.ComponentOptions {
4
+ title: string;
5
+ description: string;
6
+ alternateText: string;
7
+ mimeType: string;
8
+ channelName: string;
9
+ acceptMultiple?: boolean;
10
+ limitText: string;
11
+ isClickViewContent?: boolean;
12
+ }
13
+ export declare class FileSelectComponent extends Core.Component {
14
+ options: FileSelectComponentOptions;
15
+ constructor(options: FileSelectComponentOptions);
16
+ get name(): string;
17
+ get template(): any;
18
+ get lang(): string;
19
+ get elements(): ObjectHash;
20
+ get defaults(): ObjectHash;
21
+ get behaviors(): any[];
22
+ events(): ObjectHash;
23
+ private onDrop;
24
+ private onDragOver;
25
+ private onDragLeave;
26
+ viewOptions(): ObjectHash;
27
+ onRender(): void;
28
+ }
29
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from "../../../../../common/src/backbone";
3
+ export interface FileUploadComponentOptions extends Core.ComponentOptions {
4
+ onClickCancelUpload: (id: string) => void;
5
+ }
6
+ export declare class FileUploadComponent extends Core.Component {
7
+ options: FileUploadComponentOptions;
8
+ constructor(options: FileUploadComponentOptions);
9
+ initialize(): void;
10
+ get name(): string;
11
+ get template(): any;
12
+ events(): ObjectHash;
13
+ private onClickCancelUpload;
14
+ viewOptions(): ObjectHash;
15
+ }
@@ -0,0 +1,22 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from "../../../../../common/src/backbone";
3
+ import { AnalyticsOptions } from "../../../../../analytics/src/interfaces";
4
+ export interface ResourceItemComponentOptions extends Core.ComponentOptions {
5
+ editable: boolean;
6
+ videoId: string;
7
+ getEditAppLink: (resourceId: string) => Core.AppLink;
8
+ onClickDelete: (resource: Core.Model) => void;
9
+ analyticsOptions?: AnalyticsOptions;
10
+ }
11
+ export declare class ResourceItemComponent extends Core.Component {
12
+ options: ResourceItemComponentOptions;
13
+ constructor(options: ResourceItemComponentOptions);
14
+ get name(): string;
15
+ get template(): any;
16
+ get className(): string;
17
+ events(): ObjectHash;
18
+ get appLinks(): Core.AppLinkHash;
19
+ private onClickEdit;
20
+ private onClickDelete;
21
+ viewOptions(): ObjectHash;
22
+ }