@clickview/curator 1.0.15-rc.2 → 1.0.15-rc.3
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/projects/curator/src/apps/playlists/services/PlaylistDataService.d.ts +22 -0
- package/dist/projects/curator/src/apps/playlists/services/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/series/services/SeriesDataService.d.ts +17 -0
- package/dist/projects/curator/src/apps/series/services/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/videos/services/VideoDataService.d.ts +14 -0
- package/dist/projects/curator/src/apps/videos/services/index.d.ts +1 -0
- package/package.json +45 -45
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlaylistDataService';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SeriesDataService';
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './VideoDataService';
|
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.3",
|
|
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.2",
|
|
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.2",
|
|
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
|
+
}
|