@clickview/online 0.0.9 → 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 (112) 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/components/banner-header/BannerHeader.d.ts +1 -0
  37. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  38. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  39. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  40. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  41. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  42. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
  43. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  44. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
  45. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
  46. package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
  47. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +2 -2
  48. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
  49. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
  50. package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
  51. package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +2 -2
  52. package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
  53. package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
  54. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  55. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  56. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
  57. package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
  58. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  59. package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
  60. package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +1 -0
  61. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
  62. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
  63. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  64. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  65. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  66. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  67. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  68. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  69. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  70. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  71. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  72. package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
  73. package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
  74. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
  75. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  76. package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
  77. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  78. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  79. package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
  80. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  81. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  82. package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
  83. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +18 -0
  84. package/dist/online-app.css +21 -3
  85. package/dist/online-app.js +33 -3
  86. package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
  87. package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
  88. package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
  89. package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
  90. package/dist/projects/online/src/index.d.ts +28 -2
  91. package/dist/projects/online/src/shared/constants/Actions.d.ts +14 -3
  92. package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
  93. package/dist/projects/online/src/shared/identifiers/DataIdentifier.d.ts +1 -1
  94. package/dist/projects/online/src/shared/identifiers/WidgetCollectionIdentifier.d.ts +3 -3
  95. package/dist/projects/online/src/shared/identifiers/primitives/ServiceOptions.d.ts +2 -2
  96. package/dist/projects/online/src/shared/interfaces/SharedObject.d.ts +2 -1
  97. package/dist/projects/online/src/shared/layouts/LayoutComponent.d.ts +1 -1
  98. package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
  99. package/dist/projects/online/src/shared/utils/PopupHelper.d.ts +1 -1
  100. package/package.json +4 -3
  101. package/tooling/externals.js +3 -0
  102. package/typings/libs/CVEvents.d.ts +1 -1
  103. package/typings/libs/CVLanguages.d.ts +24 -0
  104. package/typings/libs/LazyLoad.d.ts +1 -1
  105. package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
  106. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  107. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
  108. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
  109. package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
  110. package/dist/online-app.css.map +0 -1
  111. package/dist/online-app.js.map +0 -1
  112. package/dist/projects/online/src/shared/hooks/UseListenOn.d.ts +0 -4
@@ -1,4 +1,17 @@
1
1
  import * as React from 'react';
2
+ import { HashObject } from "../../../../common/src/react/interfaces";
3
+ import { Core } from "../../../../common/src/backbone";
4
+ import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
5
+ export interface HeaderButton {
6
+ appLink?: Core.AppLink;
7
+ onClick?: (e: React.MouseEvent) => void;
8
+ svgName?: string;
9
+ className?: string;
10
+ tooltip?: string;
11
+ showSpinner?: boolean;
12
+ analyticsData?: HashObject;
13
+ analyticsOptions?: AnalyticsOptions;
14
+ }
2
15
  interface PopupProps {
3
16
  title?: string;
4
17
  closeButton?: boolean;
@@ -6,6 +19,7 @@ interface PopupProps {
6
19
  onEntered?: () => void;
7
20
  size?: 'sm' | 'lg' | 'xl';
8
21
  showLoadingSpinner?: boolean;
22
+ headerButtons?: HeaderButton[];
9
23
  }
10
24
  export declare function Popup(props: React.PropsWithChildren<PopupProps>): React.ReactElement;
11
25
  export declare namespace Popup {
@@ -105,6 +105,18 @@ export interface SearchBarProps<T extends HashObject> {
105
105
  * which side to render it on. Defaults to `right` in `defaultProps`
106
106
  */
107
107
  searchIconPlacement?: 'left' | 'right' | false;
108
+ /**
109
+ * If true, a cross svg will be rendered.
110
+ * Clicking this icon will reset the query.
111
+ */
112
+ showClearInputIcon?: boolean;
113
+ /**
114
+ * Optional callback function to be called when the clear input
115
+ * icon is clicked.
116
+ * The query will be reset automatically, this callback is for
117
+ * adding additional functionality.
118
+ */
119
+ onClickClearInput?: () => void;
108
120
  /**
109
121
  * Flag to determine whether clicking the search icon should trigger
110
122
  * submitting the search query.
@@ -114,11 +126,22 @@ export interface SearchBarProps<T extends HashObject> {
114
126
  * Flag to determine whether the search input should be autofocused.
115
127
  */
116
128
  autoFocusInput?: boolean;
129
+ /**
130
+ * If true, the default Bootstrap styling will be applied when the
131
+ * input is focused.
132
+ */
133
+ highlightInputOnFocus?: boolean;
117
134
  /**
118
135
  * When true, the input field will be cleared whenever a suggestion is selected.
119
136
  */
120
137
  clearQueryOnSelect?: boolean;
121
138
  onBackspace?: () => void;
139
+ /**
140
+ * When true, the search input will be wrapped in a <form />.
141
+ * This is true by default.
142
+ * If rendering <SearchBar /> within another form, set this to false.
143
+ */
144
+ renderAsForm?: boolean;
122
145
  }
123
146
  export declare function SearchBar<T extends HashObject>(props: SearchBarProps<T>): JSX.Element;
124
147
  export declare namespace SearchBar {
@@ -130,5 +153,6 @@ export declare namespace SearchBar {
130
153
  recentSearches: any[];
131
154
  initialSuggestions: any[];
132
155
  searchIconPlacement: string;
156
+ renderAsForm: boolean;
133
157
  };
134
158
  }
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import * as Autosuggest from 'react-autosuggest';
3
- interface SearchInputProps {
3
+ import { HashObject } from "../../../../common/src/react/interfaces";
4
+ interface SearchInputProps<T> extends Autosuggest.InputProps<T> {
4
5
  onClickSearchIcon?: () => void;
5
6
  searchIconPlacement?: 'left' | 'right' | false;
7
+ showClearInputIcon?: boolean;
8
+ onClickClearInput?: () => void;
9
+ highlightOnFocus?: boolean;
6
10
  }
7
- export declare function SearchInput<T extends {}>(props: SearchInputProps & Autosuggest.InputProps<T>): JSX.Element;
11
+ export declare function SearchInput<T extends HashObject>(props: SearchInputProps<T>): JSX.Element;
8
12
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Core } from "../../../../../common/src/backbone";
3
3
  import { Image } from "../../../interfaces";
4
- import { ThumbnailSize } from "../../../enums/ThumbnailSize";
4
+ import { ImageOptions } from "../../../utils/ImageHelper";
5
5
  import { AnalyticsOptions, HashObject } from "../../../../../analytics/src/interfaces";
6
6
  export declare enum AspectRatio {
7
7
  SixteenByNine = 0,
@@ -11,10 +11,12 @@ export declare enum AspectRatio {
11
11
  }
12
12
  interface ThumbnailProps {
13
13
  data: Image | string;
14
- size?: ThumbnailSize;
14
+ imageOptions?: ImageOptions;
15
15
  appLink?: Core.AppLink;
16
16
  aspectRatio?: AspectRatio;
17
17
  className?: string;
18
+ imageClassName?: string;
19
+ imageStyle?: HashObject;
18
20
  preload?: boolean;
19
21
  analyticsData?: HashObject;
20
22
  analyticsOptions?: AnalyticsOptions;
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { Core } from "../../../../../common/src/backbone";
3
3
  import { Video, Interactive, Clip } from "../../../interfaces";
4
- import { ThumbnailSize } from "../../../enums/ThumbnailSize";
5
4
  import { ThumbnailTextPosition } from "../../../enums/ThumbnailTextPosition";
5
+ import { ImageOptions } from "../../../utils/ImageHelper";
6
6
  import { AnalyticsOptions, HashObject } from "../../../../../analytics/src/interfaces";
7
7
  declare type BaseVideoThumbnailProps = {
8
8
  video: Video;
9
9
  videoType?: 'video' | 'interactive' | 'clip';
10
10
  interactive?: Interactive;
11
11
  clip?: Clip;
12
- size: ThumbnailSize;
12
+ imageOptions: ImageOptions;
13
13
  type: 'expandable' | 'static';
14
14
  textPosition: ThumbnailTextPosition;
15
15
  appLink: Core.AppLink;
@@ -3,22 +3,18 @@ import { Core } from "../../../../../common/src/backbone";
3
3
  import { Flight } from "../../../../../common/src/react";
4
4
  import { WidgetType } from "../../../interfaces";
5
5
  import { WidgetContents } from "../../../enums/WidgetContents";
6
- import { ThumbnailSize } from "../../../enums/ThumbnailSize";
6
+ import { ImageSize } from "../../../enums/Images";
7
7
  import { AnalyticsOptions, HashObject } from "../../../../../analytics/src/interfaces";
8
- export interface FixedWidgetProps {
8
+ interface BaseFixedWidgetProps {
9
9
  id?: string;
10
10
  name?: string;
11
11
  description?: string;
12
12
  type: WidgetType;
13
13
  contents: WidgetContents;
14
- thumbnailSize?: ThumbnailSize;
14
+ thumbnailSize?: ImageSize;
15
15
  paddingSize?: '3' | '4';
16
- collection?: any;
17
- lazyLoad?: boolean;
18
- fetch?: (...args: any) => Flight.Response<any>;
19
- prefetched?: boolean;
20
- setData?: (data: any) => any;
21
16
  minimumItemCount?: number;
17
+ setData?: (data: any) => any;
22
18
  childComponent: React.ElementType;
23
19
  childAppLink?: Core.AppLink;
24
20
  appLink?: Core.AppLink;
@@ -26,6 +22,19 @@ export interface FixedWidgetProps {
26
22
  analyticsData?: HashObject;
27
23
  analyticsOptions?: AnalyticsOptions;
28
24
  }
25
+ declare type FixedWidgetWithFetchProps = BaseFixedWidgetProps & {
26
+ lazyLoad: true;
27
+ collection?: never;
28
+ fetch: (...args: any) => Flight.Response<any>;
29
+ prefetched?: false;
30
+ };
31
+ declare type FixedWidgetWithCollectionProps = BaseFixedWidgetProps & {
32
+ collection: any;
33
+ lazyLoad?: false;
34
+ fetch?: never;
35
+ prefetched: true;
36
+ };
37
+ export declare type FixedWidgetProps = FixedWidgetWithCollectionProps | FixedWidgetWithFetchProps;
29
38
  declare function FixedWidget(props: FixedWidgetProps): JSX.Element;
30
39
  declare namespace FixedWidget {
31
40
  var defaultProps: {
@@ -13,7 +13,7 @@ export interface WidgetData {
13
13
  name?: string;
14
14
  description?: string;
15
15
  }
16
- export declare function useFetchData(props: FixedWidgetProps, dispatch: Function, mediaQueryType: MediaQueryStrings, shouldFetch: boolean): Flight.Response<any>;
16
+ export declare function useFetchData(props: FixedWidgetProps, dispatch: React.Dispatch<ReducerActions<WidgetInteraction, FixedWidgetPayload>>, mediaQueryType: MediaQueryStrings, shouldFetch: boolean): Flight.Response<any>;
17
17
  /**
18
18
  * This function wrapper determines which widget item images should be pre-fetched by the LazyImage component.
19
19
  * It does this by looking at which images are going to be shown after the users clicks on the "Next"
@@ -1,7 +1,2 @@
1
1
  /// <reference types="react" />
2
- import { WidgetType } from "../../../interfaces";
3
- interface PartialFixedWidgetProps {
4
- type: WidgetType;
5
- }
6
- export declare function PartialFixedWidget(props: PartialFixedWidgetProps): JSX.Element;
7
- export {};
2
+ export declare function PartialFixedWidget(): JSX.Element;
@@ -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,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
+ }
@@ -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
  };
@@ -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
  */
@@ -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
  };
@@ -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 };
@@ -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
  }
@@ -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
  }
@@ -1,3 +1,4 @@
1
1
  import { BaseObject } from "./..";
2
2
  export interface Link extends BaseObject {
3
+ url: string;
3
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 {};
@@ -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
+ }
@@ -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';
@@ -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';
@@ -1,8 +1,8 @@
1
1
  import { FetchOptions } from "../../../common/src/react/utils/FetchHelper";
2
2
  import { BaseDataService } from "../../../common/src/backbone/services/BaseDataService";
3
3
  import { DataServiceError } from "../../../common/src/backbone/interfaces";
4
- import { Config } from "../interfaces";
5
- export declare class ConfigDataService extends BaseDataService {
4
+ import { Config, BaseConfigDataService } from "../interfaces";
5
+ export declare class ConfigDataService extends BaseDataService implements BaseConfigDataService {
6
6
  get name(): string;
7
7
  get channelName(): string;
8
8
  getConfig(callback?: (Config: Config) => void, errorCallback?: () => void): Config;
@@ -20,12 +20,13 @@ export interface CategoryMapperImageOptions {
20
20
  export declare const ImageHelper: {
21
21
  createUrl(baseUrl: string, options?: ImageOptions): string;
22
22
  createBannerUrl(banner: Banner, mappingOptions?: CategoryMapperImageOptions, imageOptions?: ImageOptions): string;
23
+ createResourceImage(baseUrl: string, resourceUrl: string, options?: ImageOptions): string;
23
24
  /**
24
- * Ensures that strings are properly escaped before using them
25
- * within a URL.
26
- */
25
+ * Ensures that strings are properly escaped before using them
26
+ * within a URL.
27
+ */
27
28
  Rfc3986EncodeURIComponent(str: string): string;
28
29
  _createCategoryMappedUrl(mappingOptions: CategoryMapperImageOptions, options?: ImageOptions): string;
29
- _createUrl(baseUrl: string, options?: ImageOptions): string;
30
+ _createUrl(baseUrl: string, queryParams?: HashObject<any>): string;
30
31
  legacyCreateThumbnailUrl(thumbnail: string | HashObject<any> | Core.Model, options?: ImageOptions): string;
31
32
  };
@@ -8,7 +8,6 @@ export interface SVGOptions {
8
8
  }
9
9
  export declare class StaticSvgHelper {
10
10
  private static instance;
11
- private constructor();
12
11
  static get Instance(): StaticSvgHelper;
13
12
  getSvg(svgName: string, options?: SVGOptions): string;
14
13
  private getIcon;
@@ -1,3 +1,6 @@
1
+ import { UserGroup } from "../enums/UserGroup";
2
+ import { YearGroup } from "../interfaces";
1
3
  export declare const UserHelper: {
2
4
  getInitials(firstName: string, lastName: string): string;
5
+ getAvailableYearGroups(countryCode: string, userType: UserGroup): YearGroup[];
3
6
  };
@@ -1,3 +1,21 @@
1
+ import { Library, Video } from "../interfaces";
2
+ import { MasterObjectTypes } from "../enums/MasterObjectTypes";
3
+ export declare enum FileType {
4
+ Pdf = "pdf",
5
+ Image = "image",
6
+ PowerPoint = "powerpoint",
7
+ Document = "document",
8
+ Excel = "excel",
9
+ Zip = "archive",
10
+ File = "text"
11
+ }
1
12
  export declare const VideoDetailsHelper: {
2
13
  mapRatingToClass(ratingValue: number): string;
14
+ mapSourceToDisplayName(library: Library): string;
15
+ mapSourceToClass(sourceType: MasterObjectTypes): string;
16
+ isInteractive(video: Video): boolean;
17
+ mapTypeToSvg(type: string): any;
18
+ mapTypeToClass(type: string): any;
19
+ mapTypeToExtension(type: string): string;
20
+ mapTypeToName(type: string): string;
3
21
  };