@clickview/curator 1.0.15-rc.0 → 1.0.15-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/curator-app.css.map +1 -1
- package/dist/curator-app.js +1 -1
- package/dist/curator-app.js.map +1 -1
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/playlists/components/edit-playlist-nav/EditPlaylistNav.d.ts +3 -1
- package/dist/projects/curator/src/apps/playlists/utils/PlaylistNavHelper.d.ts +2 -1
- package/dist/projects/curator/src/apps/series/components/edit-series-nav/EditSeriesNav.d.ts +3 -1
- package/dist/projects/curator/src/apps/series/utils/SeriesNavHelper.d.ts +2 -1
- package/dist/projects/curator/src/apps/videos/components/edit-video-details/EditVideoDetails.d.ts +2 -1
- package/dist/projects/curator/src/apps/videos/components/edit-video-details/VideoDetailsForm.d.ts +2 -1
- package/dist/projects/curator/src/apps/videos/components/edit-video-nav/EditVideoNav.d.ts +3 -1
- package/dist/projects/curator/src/apps/videos/utils/VideoNavHelper.d.ts +2 -1
- package/dist/projects/curator/src/apps/videos/views/edit-video-aliases/EditVideoAliasesView.d.ts +1 -1
- package/dist/projects/curator/src/index.d.ts +2 -2
- package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
- package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/interfaces/models/index.d.ts +0 -2
- package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/utils/PermissionsHelper.d.ts +2 -1
- package/dist/projects/curator/src/shared/utils/UserHelper.d.ts +1 -1
- package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
- package/package.json +45 -45
- package/dist/projects/curator/src/apps/playlists/services/PlaylistDataService.d.ts +0 -22
- package/dist/projects/curator/src/apps/playlists/services/index.d.ts +0 -1
- package/dist/projects/curator/src/apps/series/services/SeriesDataService.d.ts +0 -17
- package/dist/projects/curator/src/apps/series/services/index.d.ts +0 -1
- package/dist/projects/curator/src/apps/videos/services/VideoDataService.d.ts +0 -14
- package/dist/projects/curator/src/apps/videos/services/index.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObject } from "./..";
|
|
1
|
+
import { BaseObject, Group } from "./..";
|
|
2
2
|
import { UserRole } from "../../enums/UserRole";
|
|
3
3
|
import { CustomerType } from "../../enums/CustomerType";
|
|
4
4
|
import { OnlineUserRole } from "../../enums/UserRole";
|
|
@@ -21,6 +21,7 @@ export interface CuratorUser extends User {
|
|
|
21
21
|
userId: string;
|
|
22
22
|
firstName: string;
|
|
23
23
|
countryCode: string;
|
|
24
|
+
groups: Group[];
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Current User for Lite/Cloud
|
package/dist/projects/curator/src/apps/playlists/components/edit-playlist-nav/EditPlaylistNav.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
3
|
interface EditPlaylistNavProps {
|
|
3
4
|
playlistId: string;
|
|
4
5
|
activeAction: string;
|
|
6
|
+
currentUser: CuratorUser;
|
|
5
7
|
}
|
|
6
|
-
export declare function EditPlaylistNav(
|
|
8
|
+
export declare function EditPlaylistNav(props: EditPlaylistNavProps): React.ReactElement;
|
|
7
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { NavItem } from "../../../shared/interfaces";
|
|
2
3
|
export declare const PlaylistNavHelper: {
|
|
3
4
|
getEditPlaylistTabs(currentUser: CuratorUser, playlistId: string): NavItem[];
|
|
4
5
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
3
|
interface EditSeriesNavProps {
|
|
3
4
|
seriesId: string;
|
|
4
5
|
activeAction: string;
|
|
6
|
+
currentUser: CuratorUser;
|
|
5
7
|
}
|
|
6
|
-
export declare function EditSeriesNav(
|
|
8
|
+
export declare function EditSeriesNav(props: EditSeriesNavProps): React.ReactElement;
|
|
7
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { NavItem } from "../../../shared/interfaces";
|
|
2
3
|
export declare const SeriesNavHelper: {
|
|
3
4
|
getEditSeriesTabs(currentUser: CuratorUser, seriesId: string): NavItem[];
|
|
4
5
|
};
|
package/dist/projects/curator/src/apps/videos/components/edit-video-details/EditVideoDetails.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Video, Rating, Theme } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { Video, Rating, Theme, CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
3
|
import { UpdateVideoRequest, RightslineVideo } from "../../interfaces";
|
|
4
4
|
interface EditVideoDetailsProps {
|
|
5
5
|
video: Video;
|
|
6
6
|
saveVideo: (data: UpdateVideoRequest, onDone: () => void) => void;
|
|
7
7
|
ratings: Rating[];
|
|
8
8
|
themes: Theme[];
|
|
9
|
+
currentUser: CuratorUser;
|
|
9
10
|
rightslineId?: string;
|
|
10
11
|
rightslineVideo?: RightslineVideo;
|
|
11
12
|
}
|
package/dist/projects/curator/src/apps/videos/components/edit-video-details/VideoDetailsForm.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Rating, Theme } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { Rating, Theme, CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
3
|
import { ActionOptions } from "../../../../../../../libs/shared/src/components/actions/Actions";
|
|
4
4
|
interface VideoDetailsFormProps {
|
|
5
5
|
id: string;
|
|
6
6
|
ratings: Rating[];
|
|
7
7
|
themes: Theme[];
|
|
8
|
+
currentUser: CuratorUser;
|
|
8
9
|
rightslineId?: string;
|
|
9
10
|
actions?: ActionOptions[];
|
|
10
11
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
|
|
2
3
|
interface EditVideoNavProps {
|
|
3
4
|
videoId: string;
|
|
4
5
|
activeAction: string;
|
|
6
|
+
currentUser: CuratorUser;
|
|
5
7
|
}
|
|
6
|
-
export declare function EditVideoNav(
|
|
8
|
+
export declare function EditVideoNav(props: EditVideoNavProps): React.ReactElement;
|
|
7
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
|
|
1
2
|
import { NavItem } from "../../../shared/interfaces";
|
|
2
3
|
export declare const VideoNavHelper: {
|
|
3
|
-
getEditVideoTabs(videoId: string): NavItem[];
|
|
4
|
+
getEditVideoTabs(currentUser: CuratorUser, videoId: string): NavItem[];
|
|
4
5
|
};
|
package/dist/projects/curator/src/apps/videos/views/edit-video-aliases/EditVideoAliasesView.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import * as React from 'react';
|
|
|
2
2
|
interface EditVideoAliasesViewProps {
|
|
3
3
|
videoId: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function EditVideoAliasesView(
|
|
5
|
+
export declare function EditVideoAliasesView(props: EditVideoAliasesViewProps): React.ReactElement;
|
|
6
6
|
export {};
|
|
@@ -51,5 +51,5 @@ import { LanguageService } from "../../../libs/common/src/backbone/services/Lang
|
|
|
51
51
|
import { Flight } from "../../../libs/common/src/react";
|
|
52
52
|
import { Core } from "../../../libs/common/src/backbone";
|
|
53
53
|
import { CacheDurations } from "../../../libs/shared/src/constants/CacheDurations";
|
|
54
|
-
import {
|
|
55
|
-
export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations
|
|
54
|
+
import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
|
|
55
|
+
export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertList, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CuratorUser
|
|
1
|
+
import { CuratorUser } from "../../../../../libs/shared/src/interfaces";
|
|
2
|
+
import { Permission } from "../interfaces";
|
|
2
3
|
export declare const PermissionsHelper: {
|
|
3
4
|
getProtectedReadPermission(): Permission[];
|
|
4
5
|
hasSubjectsAccess(user: CuratorUser): boolean;
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/curator",
|
|
3
|
-
"version": "1.0.15-rc.
|
|
4
|
-
"description": "curator",
|
|
5
|
-
"main": "dist/curator-app.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
-
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
-
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "http://gitlab.cvinternal.net/front-end/curator.git"
|
|
15
|
-
},
|
|
16
|
-
"cv": {
|
|
17
|
-
"publishable": true,
|
|
18
|
-
"rebuildable": true
|
|
19
|
-
},
|
|
20
|
-
"author": "Matt Trengrove",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@clickview/tooling": "0.0.16-rc.
|
|
24
|
-
"@types/cropperjs": "1.3.0",
|
|
25
|
-
"@types/react-transition-group": "4.2.3",
|
|
26
|
-
"@types/yup": "0.26.24"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@clickview/styles": "1.0.6-rc.
|
|
30
|
-
"cropperjs": "1.5.6",
|
|
31
|
-
"marked": "0.8.0",
|
|
32
|
-
"yup": "0.27.0"
|
|
33
|
-
},
|
|
34
|
-
"babel": {
|
|
35
|
-
"presets": [
|
|
36
|
-
[
|
|
37
|
-
"@babel/preset-env",
|
|
38
|
-
{
|
|
39
|
-
"corejs": 2,
|
|
40
|
-
"useBuiltIns": "entry"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/curator",
|
|
3
|
+
"version": "1.0.15-rc.2",
|
|
4
|
+
"description": "curator",
|
|
5
|
+
"main": "dist/curator-app.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
+
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
+
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "http://gitlab.cvinternal.net/front-end/curator.git"
|
|
15
|
+
},
|
|
16
|
+
"cv": {
|
|
17
|
+
"publishable": true,
|
|
18
|
+
"rebuildable": true
|
|
19
|
+
},
|
|
20
|
+
"author": "Matt Trengrove",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@clickview/tooling": "0.0.16-rc.1",
|
|
24
|
+
"@types/cropperjs": "1.3.0",
|
|
25
|
+
"@types/react-transition-group": "4.2.3",
|
|
26
|
+
"@types/yup": "0.26.24"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@clickview/styles": "1.0.6-rc.1",
|
|
30
|
+
"cropperjs": "1.5.6",
|
|
31
|
+
"marked": "0.8.0",
|
|
32
|
+
"yup": "0.27.0"
|
|
33
|
+
},
|
|
34
|
+
"babel": {
|
|
35
|
+
"presets": [
|
|
36
|
+
[
|
|
37
|
+
"@babel/preset-env",
|
|
38
|
+
{
|
|
39
|
+
"corejs": 2,
|
|
40
|
+
"useBuiltIns": "entry"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
|
|
2
|
-
import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
3
|
-
import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
|
|
4
|
-
import { Playlist, VideoCollection, ReorderRequest } from "../../../../../../libs/shared/src/interfaces";
|
|
5
|
-
import { CreateOrUpdatePlaylistRequest } from "../../../../../../libs/shared/src/apps/playlists/interfaces";
|
|
6
|
-
export declare class PlaylistDataService extends BaseDataService {
|
|
7
|
-
get name(): string;
|
|
8
|
-
get channelName(): string;
|
|
9
|
-
getPlaylist(playlistId: string, callback?: (data: Playlist) => void, errorCallback?: () => void): Playlist;
|
|
10
|
-
getPlaylistsById(ids: string[], callback?: (data: Playlist[]) => void, errorCallback?: () => void): Playlist[];
|
|
11
|
-
createPlaylist(data: CreateOrUpdatePlaylistRequest, userId: string, callback?: (data: Playlist) => void, errorCallback?: () => void): void;
|
|
12
|
-
updatePlaylist(id: string, data: CreateOrUpdatePlaylistRequest, callback?: (data: Playlist) => void, errorCallback?: () => void): void;
|
|
13
|
-
deletePlaylist(playlistId: string, callback?: () => void, errorCallback?: () => void): void;
|
|
14
|
-
getPlaylistVideos(playlistId: string, callback?: (data: VideoCollection) => void, errorCallback?: () => void): VideoCollection;
|
|
15
|
-
reorderVideos(playlistId: string, reorderRequest: ReorderRequest, callback?: () => void): void;
|
|
16
|
-
removeVideoFromPlaylist(playlistId: string, videoId: string, callback?: () => void, errorCallback?: () => void): void;
|
|
17
|
-
}
|
|
18
|
-
export declare const PlaylistDataServiceHelper: {
|
|
19
|
-
getPlaylistFetchOptions: (playlistId: string, setData: (data: Playlist) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
20
|
-
getPlaylistsByIdFetchOptions: (ids: string[], setData: (data: Playlist[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
21
|
-
getPlaylistVideosFetchOptions: (playlistId: string, setData: (data: VideoCollection) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PlaylistDataService';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
|
|
2
|
-
import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
3
|
-
import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
|
|
4
|
-
import { Series } from "../../../../../../libs/shared/src/interfaces";
|
|
5
|
-
import { CreateOrUpdateSeriesRequest } from "../interfaces";
|
|
6
|
-
export declare class SeriesDataService extends BaseDataService {
|
|
7
|
-
get name(): string;
|
|
8
|
-
get channelName(): string;
|
|
9
|
-
getSeries(seriesId: string, callback?: (video: Series) => void, errorCallback?: () => void): Series;
|
|
10
|
-
getSeriesById(ids: string[], callback?: (data: Series[]) => void, errorCallback?: () => void): Series[];
|
|
11
|
-
createSeries(data: CreateOrUpdateSeriesRequest, callback?: (data: Series) => void, errorCallback?: () => void): void;
|
|
12
|
-
updateSeries(id: string, data: CreateOrUpdateSeriesRequest, callback?: (data: Series) => void, errorCallback?: () => void): void;
|
|
13
|
-
}
|
|
14
|
-
export declare const SeriesDataServiceHelper: {
|
|
15
|
-
getSeriesFetchOptions(seriesId: string, setData: (data: Series) => void, onError?: (error: DataServiceError) => void): FetchOptions;
|
|
16
|
-
getSeriesByIdFetchOptions: (ids: string[], setData: (data: Series[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SeriesDataService';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
|
|
2
|
-
import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
3
|
-
import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
|
|
4
|
-
import { Video } from "../../../../../../libs/shared/src/interfaces";
|
|
5
|
-
export declare class VideoDataService extends BaseDataService {
|
|
6
|
-
get name(): string;
|
|
7
|
-
get channelName(): string;
|
|
8
|
-
getVideo(videoId: string, callback?: (video: Video) => void, errorCallback?: () => void): Video;
|
|
9
|
-
getVideosById(ids: string[], callback?: (data: Video[]) => void, errorCallback?: () => void): Video[];
|
|
10
|
-
}
|
|
11
|
-
export declare const VideoDataServiceHelper: {
|
|
12
|
-
getVideoFetchOptions: (videoId: string, setData: (data: Video) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
13
|
-
getVideosByIdFetchOptions: (ids: string[], setData: (data: Video[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './VideoDataService';
|