@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.
- package/.eslintrc.json +3 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
- package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +2 -2
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
- package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +1 -0
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
- package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
- package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
- package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
- package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
- package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
- package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
- package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
- package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +2 -2
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
- package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
- package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +2 -2
- package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
- package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +1 -0
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/services/ConfigDataService.d.ts +2 -2
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +18 -0
- package/dist/online-app.css +21 -3
- package/dist/online-app.js +33 -3
- package/dist/projects/online/src/apps/content-updates/ContentUpdatesApplication.d.ts +1 -1
- package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +1 -0
- package/dist/projects/online/src/apps/playlists/components/old-forms/OldFormWrapper.d.ts +2 -1
- package/dist/projects/online/src/apps/subjects/SubjectPlaylistsApplication.d.ts +1 -1
- package/dist/projects/online/src/index.d.ts +28 -2
- package/dist/projects/online/src/shared/constants/Actions.d.ts +14 -3
- package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
- package/dist/projects/online/src/shared/identifiers/DataIdentifier.d.ts +1 -1
- package/dist/projects/online/src/shared/identifiers/WidgetCollectionIdentifier.d.ts +3 -3
- package/dist/projects/online/src/shared/identifiers/primitives/ServiceOptions.d.ts +2 -2
- package/dist/projects/online/src/shared/interfaces/SharedObject.d.ts +2 -1
- package/dist/projects/online/src/shared/layouts/LayoutComponent.d.ts +1 -1
- package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +1 -1
- package/dist/projects/online/src/shared/utils/PopupHelper.d.ts +1 -1
- package/package.json +4 -3
- package/tooling/externals.js +3 -0
- package/typings/libs/CVEvents.d.ts +1 -1
- package/typings/libs/CVLanguages.d.ts +24 -0
- package/typings/libs/LazyLoad.d.ts +1 -1
- package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
- package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
- package/dist/online-app.css.map +0 -1
- package/dist/online-app.js.map +0 -1
- 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
|
-
|
|
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
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
6
|
+
import { ImageSize } from "../../../enums/Images";
|
|
7
7
|
import { AnalyticsOptions, HashObject } from "../../../../../analytics/src/interfaces";
|
|
8
|
-
|
|
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?:
|
|
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:
|
|
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
|
-
|
|
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;
|
package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts
CHANGED
|
@@ -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 {
|
|
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:
|
|
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;
|
|
@@ -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
|
};
|
|
@@ -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
|
-
|
|
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 };
|
|
@@ -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,9 +1,17 @@
|
|
|
1
1
|
import { BaseObject } from './primitives';
|
|
2
|
-
|
|
3
|
-
|
|
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:
|
|
12
|
+
metadata: ResourceMetadata;
|
|
13
|
+
fileId: string;
|
|
14
|
+
thumbnail: Thumbnail;
|
|
15
|
+
pdf?: Pdf;
|
|
8
16
|
}
|
|
9
17
|
export {};
|
|
@@ -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:
|
|
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;
|
|
@@ -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,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
|
}
|
|
@@ -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
|
-
|
|
25
|
-
|
|
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,
|
|
30
|
+
_createUrl(baseUrl: string, queryParams?: HashObject<any>): string;
|
|
30
31
|
legacyCreateThumbnailUrl(thumbnail: string | HashObject<any> | Core.Model, options?: ImageOptions): string;
|
|
31
32
|
};
|
|
@@ -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
|
};
|