react-covideo-embed 0.1.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/README.md +65 -0
- package/build/app/App.d.ts +2 -0
- package/build/app/pages/insertVideo/InsertVideo.d.ts +5 -0
- package/build/app/pages/insertVideo/components/InsertVideoSettings.d.ts +18 -0
- package/build/app/pages/insertVideo/components/VehicleSearch.d.ts +14 -0
- package/build/app/pages/insertVideo/components/index.d.ts +2 -0
- package/build/app/pages/library/Library.d.ts +11 -0
- package/build/app/pages/library/components/NoVideos.d.ts +6 -0
- package/build/app/pages/library/components/PageInfo.d.ts +7 -0
- package/build/app/pages/library/components/Search.d.ts +6 -0
- package/build/app/pages/library/components/UserDropdown.d.ts +6 -0
- package/build/app/pages/library/components/VideoItem.d.ts +9 -0
- package/build/app/pages/library/components/index.d.ts +5 -0
- package/build/app/pages/login/Login.d.ts +5 -0
- package/build/app/pages/merge/Merge.d.ts +1 -0
- package/build/app/pages/merge/components/Player.d.ts +7 -0
- package/build/app/pages/merge/components/VideoMerge.d.ts +15 -0
- package/build/app/pages/merge/components/VideoRow.d.ts +1 -0
- package/build/app/pages/merge/components/VideoThumbnail.d.ts +2 -0
- package/build/app/pages/previewUpload/PreviewUpload.d.ts +2 -0
- package/build/app/pages/record/both/RecordBoth.d.ts +1 -0
- package/build/app/pages/record/both/main/Main.d.ts +1 -0
- package/build/app/pages/record/cam/RecordCam.d.ts +1 -0
- package/build/app/pages/record/cam/main/Main.d.ts +1 -0
- package/build/app/pages/record/home/RecordHome.d.ts +1 -0
- package/build/app/pages/record/screen/RecordScreen.d.ts +2 -0
- package/build/app/pages/record/screen/main/Main.d.ts +1 -0
- package/build/app/pages/video/Upload.d.ts +10 -0
- package/build/app/pages/video/components/Preview.d.ts +12 -0
- package/build/app/pages/video/components/videoPlayer/VideoPlayer.d.ts +29 -0
- package/build/app/pages/video/components/videoPlayer/components/index.d.ts +2 -0
- package/build/app/pages/video/components/videoPlayer/components/onScreenPlayButton.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/progressBar.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Handle.d.ts +15 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/SliderRail.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Tick.d.ts +9 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/TimelineRange.d.ts +19 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Track.d.ts +10 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/Trim.d.ts +13 -0
- package/build/app/pages/video/components/videoPlayer/components/trim/VideoPreviewTrack.d.ts +7 -0
- package/build/app/pages/video/components/videoPlayer/components/videoControls.d.ts +25 -0
- package/build/app/pages/video/components/videoPlayer/index.d.ts +1 -0
- package/build/app/pages/video/videoDetails/components/AttributesFields.d.ts +7 -0
- package/build/app/pages/voiceover/Voiceover.d.ts +1 -0
- package/build/app/pages/voiceover/components/AudioRecorder.d.ts +14 -0
- package/build/app/pages/voiceover/components/VideoPreview.d.ts +11 -0
- package/build/app/pages/voiceover/components/util.d.ts +1 -0
- package/build/app/pages/wheelsTV/WheelsTV.d.ts +1 -0
- package/build/app/pages/wheelsTV/components/PageInfo.d.ts +7 -0
- package/build/app/pages/wheelsTV/components/Search.d.ts +6 -0
- package/build/app/pages/wheelsTV/components/index.d.ts +2 -0
- package/build/index.d.ts +27 -0
- package/build/index.js +2 -0
- package/build/index.js.LICENSE.txt +42 -0
- package/build/lib/api/attributesApi.d.ts +8 -0
- package/build/lib/api/authApi.d.ts +11 -0
- package/build/lib/api/base.d.ts +10 -0
- package/build/lib/api/designApi.d.ts +86 -0
- package/build/lib/api/index.d.ts +10 -0
- package/build/lib/api/inventoryApi.d.ts +10 -0
- package/build/lib/api/shareApi.d.ts +11 -0
- package/build/lib/api/types.d.ts +44 -0
- package/build/lib/api/videoRequestApi.d.ts +25 -0
- package/build/lib/api/videoTagsApi.d.ts +12 -0
- package/build/lib/api/videosApi.d.ts +63 -0
- package/build/lib/api/voiceOverApi.d.ts +20 -0
- package/build/lib/api/wtvApi.d.ts +31 -0
- package/build/lib/components/Button.d.ts +21 -0
- package/build/lib/components/CheckboxInput.d.ts +19 -0
- package/build/lib/components/CloseButton.d.ts +13 -0
- package/build/lib/components/Container.d.ts +6 -0
- package/build/lib/components/CountDown.d.ts +1 -0
- package/build/lib/components/DragAndDrop.d.ts +26 -0
- package/build/lib/components/Dropdown.d.ts +29 -0
- package/build/lib/components/HoverPopup.d.ts +15 -0
- package/build/lib/components/Input.d.ts +10 -0
- package/build/lib/components/Label.d.ts +6 -0
- package/build/lib/components/LoadingIndicator.d.ts +11 -0
- package/build/lib/components/Logo.d.ts +5 -0
- package/build/lib/components/MainWrapper.d.ts +6 -0
- package/build/lib/components/PreviewVideoBar.d.ts +7 -0
- package/build/lib/components/RouteLeavingGuard.d.ts +18 -0
- package/build/lib/components/Spinner.d.ts +6 -0
- package/build/lib/components/TopBar.d.ts +9 -0
- package/build/lib/components/index.d.ts +16 -0
- package/build/lib/components/inputs/CheckboxInput.d.ts +18 -0
- package/build/lib/components/inputs/RadioInput.d.ts +14 -0
- package/build/lib/components/inputs/index.d.ts +2 -0
- package/build/lib/components/modal/Modal.d.ts +13 -0
- package/build/lib/components/modal/ModalLeave.d.ts +15 -0
- package/build/lib/components/modal/ModalMarkAsSent.d.ts +6 -0
- package/build/lib/components/modal/ModalRecordingSettings.d.ts +10 -0
- package/build/lib/components/modals/Modal.d.ts +13 -0
- package/build/lib/components/modals/ModalInputText.d.ts +11 -0
- package/build/lib/components/modals/ModalLeave.d.ts +15 -0
- package/build/lib/components/modals/ModalPrompt.d.ts +12 -0
- package/build/lib/components/modals/ModalUpload.d.ts +7 -0
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +6 -0
- package/build/lib/components/toast-notifications/index.d.ts +4 -0
- package/build/lib/components/videoUpload/MultipleUploadList.d.ts +8 -0
- package/build/lib/components/videoUpload/VideoUpload.d.ts +15 -0
- package/build/lib/components/videoUpload/styles.d.ts +17 -0
- package/build/lib/config.d.ts +24 -0
- package/build/lib/const/AutomotiveRole.d.ts +12 -0
- package/build/lib/const/Folder.d.ts +8 -0
- package/build/lib/const/InternalCustomers.d.ts +9 -0
- package/build/lib/const/MarkAsSentOptions.d.ts +14 -0
- package/build/lib/const/PackageName.d.ts +7 -0
- package/build/lib/const/VideoEmailStatus.d.ts +7 -0
- package/build/lib/const/VideoStatus.d.ts +6 -0
- package/build/lib/const/VideoType.d.ts +15 -0
- package/build/lib/const/index.d.ts +6 -0
- package/build/lib/context/ActionDispatchContext.d.ts +5 -0
- package/build/lib/context/AuthorizationContext.d.ts +115 -0
- package/build/lib/context/ConfigurationContext.d.ts +16 -0
- package/build/lib/context/actionCreators.d.ts +37 -0
- package/build/lib/context/authHandlers.d.ts +2 -0
- package/build/lib/context/authReducer.d.ts +16 -0
- package/build/lib/context/index.d.ts +4 -0
- package/build/lib/context/types.d.ts +148 -0
- package/build/lib/hooks/index.d.ts +3 -0
- package/build/lib/hooks/query/inventoryItem/index.d.ts +1 -0
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +12 -0
- package/build/lib/hooks/useCreateVideo.d.ts +21 -0
- package/build/lib/hooks/useEncodeVideo.d.ts +16 -0
- package/build/lib/hooks/useMediaRecorder.d.ts +46 -0
- package/build/lib/hooks/usePresignedUrl.d.ts +16 -0
- package/build/lib/hooks/useQueryFetch.d.ts +19 -0
- package/build/lib/hooks/useQueryState.d.ts +22 -0
- package/build/lib/hooks/useS3Upload.d.ts +15 -0
- package/build/lib/hooks/useVideoShareLink.d.ts +18 -0
- package/build/lib/hooks/useVideoStore.d.ts +17 -0
- package/build/lib/hooks/useVideoTranscriptionStart.d.ts +9 -0
- package/build/lib/images/AccountIcon.d.ts +2 -0
- package/build/lib/images/AddIcon.d.ts +2 -0
- package/build/lib/images/ArrowBackcon.d.ts +2 -0
- package/build/lib/images/CarIcon.d.ts +2 -0
- package/build/lib/images/CheckmarkIcon.d.ts +2 -0
- package/build/lib/images/CloseCircleIcon.d.ts +2 -0
- package/build/lib/images/CloseIcon.d.ts +2 -0
- package/build/lib/images/CutIcon.d.ts +2 -0
- package/build/lib/images/DeleteIcon.d.ts +2 -0
- package/build/lib/images/Drag.d.ts +2 -0
- package/build/lib/images/DropdownIcon.d.ts +1 -0
- package/build/lib/images/HashtagIcon.d.ts +2 -0
- package/build/lib/images/InsertVideoIcon.d.ts +2 -0
- package/build/lib/images/LaptopIcon.d.ts +2 -0
- package/build/lib/images/LogoCDS.d.ts +2 -0
- package/build/lib/images/LogoGeneral.d.ts +2 -0
- package/build/lib/images/MovieIcon.d.ts +2 -0
- package/build/lib/images/SaveIcon.d.ts +2 -0
- package/build/lib/images/SettingsIcon.d.ts +2 -0
- package/build/lib/images/SmallLogoIcon.d.ts +2 -0
- package/build/lib/images/VectorIcon.d.ts +2 -0
- package/build/lib/images/VideoIcon.d.ts +2 -0
- package/build/lib/images/ZoomInIcon.d.ts +2 -0
- package/build/lib/images/ZoomOutIcon.d.ts +2 -0
- package/build/lib/images/pauseButton.d.ts +2 -0
- package/build/lib/images/playButton.d.ts +2 -0
- package/build/lib/images/volumeOff.d.ts +1 -0
- package/build/lib/style/index.d.ts +2 -0
- package/build/lib/style/theme.d.ts +121 -0
- package/build/lib/utils/UseOnClickOutside.d.ts +3 -0
- package/build/lib/utils/automotiveRolePermissionChecks.d.ts +11 -0
- package/build/lib/utils/functions.d.ts +18 -0
- package/build/lib/utils/object.d.ts +3 -0
- package/build/lib/utils/reactions.d.ts +3 -0
- package/package.json +68 -0
- package/react-covideo-embed-0.1.0.tgz +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Lodash <https://lodash.com/>
|
|
10
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
11
|
+
* Released under MIT license <https://lodash.com/license>
|
|
12
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
13
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @license React
|
|
18
|
+
* react-jsx-runtime.production.min.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/** @license React v16.13.1
|
|
27
|
+
* react-is.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/** @license React v17.0.2
|
|
36
|
+
* react-is.production.min.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryListParams, AttributeListItem } from '.';
|
|
2
|
+
export declare const getAttributes: ({ page, size, search, sort, filterByDepartment, }: QueryListParams) => Promise<{
|
|
3
|
+
count: number;
|
|
4
|
+
attributes: AttributeListItem[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const putVideoAttributes: (videoId: string, data: object[]) => Promise<{
|
|
7
|
+
videoAttributes: any;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type AuthParams = {
|
|
2
|
+
username: string;
|
|
3
|
+
password: string;
|
|
4
|
+
};
|
|
5
|
+
type AuthResponse = {
|
|
6
|
+
tokenType: string;
|
|
7
|
+
accessToken: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const login: ({ username, password }: AuthParams) => Promise<AuthResponse>;
|
|
10
|
+
export declare const fetchUserData: () => Promise<any>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosRequestConfig, Method } from 'axios';
|
|
2
|
+
export declare const requestMethods: {
|
|
3
|
+
GET: Method;
|
|
4
|
+
POST: Method;
|
|
5
|
+
PUT: Method;
|
|
6
|
+
PATCH: Method;
|
|
7
|
+
DELETE: Method;
|
|
8
|
+
HEAD: Method;
|
|
9
|
+
};
|
|
10
|
+
export declare const fetcher: (options: AxiosRequestConfig) => Promise<any>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export interface TemplatesData {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LinksetsData {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
defaultLinks: number;
|
|
9
|
+
}
|
|
10
|
+
export interface OverlaysData {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
export type LandingPage = {
|
|
15
|
+
id: number;
|
|
16
|
+
title: string;
|
|
17
|
+
thumbnailURL: string;
|
|
18
|
+
typeId?: number;
|
|
19
|
+
landingPage?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type GetLandingPagesParams = {
|
|
24
|
+
search?: string;
|
|
25
|
+
start?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
showUserCustomLandingPages?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type GetLandingPagesResponse = {
|
|
30
|
+
templates: LandingPage[];
|
|
31
|
+
default: LandingPage;
|
|
32
|
+
count: number;
|
|
33
|
+
};
|
|
34
|
+
export declare const getLandingPages: (params: GetLandingPagesParams) => Promise<GetLandingPagesResponse>;
|
|
35
|
+
export type ValidTinyInt = 0 | 1;
|
|
36
|
+
export type CustomerAndUserIds = {
|
|
37
|
+
customerId: number;
|
|
38
|
+
userId: number;
|
|
39
|
+
};
|
|
40
|
+
export type CTA = CustomerAndUserIds & {
|
|
41
|
+
id: number;
|
|
42
|
+
ctaSetId: number;
|
|
43
|
+
type: string;
|
|
44
|
+
linkText: string;
|
|
45
|
+
linkValue: string;
|
|
46
|
+
autoOpen: boolean;
|
|
47
|
+
linkPosition: number;
|
|
48
|
+
newWindow: ValidTinyInt;
|
|
49
|
+
fileTitle: string;
|
|
50
|
+
fileThumbnail: string;
|
|
51
|
+
itemType: string;
|
|
52
|
+
};
|
|
53
|
+
export type CTASet = CustomerAndUserIds & {
|
|
54
|
+
id: number;
|
|
55
|
+
company: ValidTinyInt;
|
|
56
|
+
title: string;
|
|
57
|
+
defaultLinks: ValidTinyInt;
|
|
58
|
+
links: CTA[];
|
|
59
|
+
};
|
|
60
|
+
export type GetCtaSetParams = {
|
|
61
|
+
search?: string;
|
|
62
|
+
start?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
};
|
|
65
|
+
export type GetCtaSetResponse = {
|
|
66
|
+
linksets: CTASet[];
|
|
67
|
+
default: CTASet;
|
|
68
|
+
};
|
|
69
|
+
export declare const getCTASets: (params: GetCtaSetParams) => Promise<GetCtaSetResponse>;
|
|
70
|
+
export type WebsiteOverlay = {
|
|
71
|
+
id: number;
|
|
72
|
+
url: string;
|
|
73
|
+
title: string;
|
|
74
|
+
defaultflag: 0 | 1;
|
|
75
|
+
fileThumbnail: string;
|
|
76
|
+
fileTitle: string;
|
|
77
|
+
type: string;
|
|
78
|
+
itemType: string;
|
|
79
|
+
};
|
|
80
|
+
export type GetWebsiteOverlaysParams = GetLandingPagesParams;
|
|
81
|
+
export type GetWebsiteOverlaysResponse = {
|
|
82
|
+
websiteUrls: WebsiteOverlay[];
|
|
83
|
+
default: WebsiteOverlay;
|
|
84
|
+
count: number;
|
|
85
|
+
};
|
|
86
|
+
export declare const getWebsiteOverlays: (params: GetWebsiteOverlaysParams) => Promise<GetWebsiteOverlaysResponse>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './base';
|
|
2
|
+
export * from './authApi';
|
|
3
|
+
export * from './videosApi';
|
|
4
|
+
export * from './designApi';
|
|
5
|
+
export * from './inventoryApi';
|
|
6
|
+
export * from './videoRequestApi';
|
|
7
|
+
export * from './voiceOverApi';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export * from './wtvApi';
|
|
10
|
+
export * from './attributesApi';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GetInventoryParams = {
|
|
2
|
+
search?: string;
|
|
3
|
+
start?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
sort?: string;
|
|
6
|
+
soldFilter?: string;
|
|
7
|
+
videosRecordedFilter?: string;
|
|
8
|
+
countRecorded?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const getInventoryItems: (params: GetInventoryParams) => Promise<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type GetQuickshareParams = {
|
|
2
|
+
templateId?: number | string;
|
|
3
|
+
linksetId?: number | string;
|
|
4
|
+
overlayId?: number | string;
|
|
5
|
+
vin?: number | string;
|
|
6
|
+
format?: string;
|
|
7
|
+
useAutomotive?: boolean;
|
|
8
|
+
allowVideoReply?: boolean;
|
|
9
|
+
allowReactions?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const getQuickshareDetails: (videoId: string | number, params?: GetQuickshareParams) => Promise<any>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type GetSignedUrlsParams = {
|
|
2
|
+
fileName: string;
|
|
3
|
+
mimeType: string;
|
|
4
|
+
folder: string;
|
|
5
|
+
};
|
|
6
|
+
export type GetSignedUrlsResponse = {
|
|
7
|
+
uploadUrl: string;
|
|
8
|
+
downloadUrl: string;
|
|
9
|
+
};
|
|
10
|
+
export type QueryListParams = {
|
|
11
|
+
groupId?: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
size?: number;
|
|
14
|
+
search?: string;
|
|
15
|
+
sort?: string;
|
|
16
|
+
reportId?: string;
|
|
17
|
+
accountManagerId?: string;
|
|
18
|
+
resellerId?: string;
|
|
19
|
+
integrationId?: number;
|
|
20
|
+
all?: boolean;
|
|
21
|
+
filterByDepartment?: boolean;
|
|
22
|
+
refresh?: boolean;
|
|
23
|
+
startDate?: Date;
|
|
24
|
+
endDate?: Date;
|
|
25
|
+
};
|
|
26
|
+
export type AttributeListItem = {
|
|
27
|
+
attributeId?: string;
|
|
28
|
+
title: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
type: number;
|
|
31
|
+
default?: string;
|
|
32
|
+
isRequired?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export interface VideoTranscriptionResponse {
|
|
35
|
+
success: boolean;
|
|
36
|
+
data: {
|
|
37
|
+
error: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface VideoTranscriptionBody {
|
|
42
|
+
transcript?: string;
|
|
43
|
+
enabled: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type VideoRequestListFilter = {
|
|
2
|
+
videoType?: string;
|
|
3
|
+
userId?: string;
|
|
4
|
+
advisorId?: string;
|
|
5
|
+
statuses?: string;
|
|
6
|
+
videoId?: string;
|
|
7
|
+
search?: string;
|
|
8
|
+
};
|
|
9
|
+
export type VideoRequestListParams = {
|
|
10
|
+
start?: number;
|
|
11
|
+
limit?: number;
|
|
12
|
+
sort?: string;
|
|
13
|
+
filter?: VideoRequestListFilter;
|
|
14
|
+
};
|
|
15
|
+
export type CreateVideoRequestParams = {
|
|
16
|
+
data: object;
|
|
17
|
+
videoRequestId?: string | number;
|
|
18
|
+
};
|
|
19
|
+
export type ApproveDenyRequestParams = {
|
|
20
|
+
videoRequestId?: string | number;
|
|
21
|
+
note?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const getVideoRequestByVideoId: (id: string) => Promise<any>;
|
|
24
|
+
export declare const createVideoRequest: ({ data, }: CreateVideoRequestParams) => Promise<any>;
|
|
25
|
+
export declare const markAsSentVideoRequest: ({ videoRequestId, }: ApproveDenyRequestParams) => Promise<any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TagParams = {
|
|
2
|
+
page?: number;
|
|
3
|
+
size?: number;
|
|
4
|
+
search?: string;
|
|
5
|
+
all?: boolean;
|
|
6
|
+
sort?: string;
|
|
7
|
+
refresh?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const getTags: ({ page, size, search, all, sort, refresh, }: TagParams) => Promise<any>;
|
|
10
|
+
export declare const putVideoTags: (videoId: string, data: object[]) => Promise<{
|
|
11
|
+
videoTags: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Folder, TrimVideoData } from 'lib/context';
|
|
2
|
+
import { VideoTranscriptionResponse } from './types';
|
|
3
|
+
export declare const ALL_FOLDERS: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export type VideoListParams = {
|
|
8
|
+
size: number | undefined;
|
|
9
|
+
page: number | undefined;
|
|
10
|
+
search?: string | null;
|
|
11
|
+
folder?: string;
|
|
12
|
+
};
|
|
13
|
+
export type VideoRequest = {
|
|
14
|
+
videoRequestId: string;
|
|
15
|
+
vin?: string;
|
|
16
|
+
};
|
|
17
|
+
export type VideoListItem = {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
recordDate: string;
|
|
21
|
+
views: string;
|
|
22
|
+
videoLength: number;
|
|
23
|
+
thumbnail: string;
|
|
24
|
+
videoSource: string;
|
|
25
|
+
tags: object[];
|
|
26
|
+
videoRequest: VideoRequest;
|
|
27
|
+
folder: string;
|
|
28
|
+
};
|
|
29
|
+
export type VideoUpdateBody = {
|
|
30
|
+
title?: string;
|
|
31
|
+
thumbnail?: string;
|
|
32
|
+
playerBackgroundColor?: string;
|
|
33
|
+
playerIconsAndTextColor?: string;
|
|
34
|
+
playButtonPosition?: string;
|
|
35
|
+
reactionsPreference?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type UpdateVideoParams = {
|
|
38
|
+
videoId: string;
|
|
39
|
+
videoBody: VideoUpdateBody;
|
|
40
|
+
};
|
|
41
|
+
export type DeleteVideoApiParams = {
|
|
42
|
+
videoIds: (string | number)[];
|
|
43
|
+
deleteMultiple: boolean;
|
|
44
|
+
companyVideos?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export declare const getFolders: () => Promise<Folder[]>;
|
|
47
|
+
export declare const getVideos: (props: VideoListParams) => Promise<{
|
|
48
|
+
count: number;
|
|
49
|
+
videos: VideoListItem[];
|
|
50
|
+
}>;
|
|
51
|
+
export declare const getVideo: (videoId: string) => Promise<any>;
|
|
52
|
+
export declare const deleteVideo: ({ videoIds, deleteMultiple, companyVideos, }: DeleteVideoApiParams) => Promise<{
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const mergeVideos: (body: any) => Promise<any>;
|
|
56
|
+
export declare const updateVideo: ({ videoId, videoBody, }: UpdateVideoParams) => Promise<{
|
|
57
|
+
video: any;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const trimVideo: (videoId: string, body: TrimVideoData) => Promise<any>;
|
|
60
|
+
export declare const createVideoActivity: (data: any) => Promise<any>;
|
|
61
|
+
export declare const downloadVideo: (videoId: string, fileName: string) => Promise<void>;
|
|
62
|
+
export declare const copyCompanyVideoToPrimary: (videoId: string) => Promise<any>;
|
|
63
|
+
export declare const startTranscription: (videoId: string) => Promise<VideoTranscriptionResponse>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GetSignedUrlsParams, GetSignedUrlsResponse } from '.';
|
|
2
|
+
export type UploadVoiceoverAudioParams = {
|
|
3
|
+
data: {
|
|
4
|
+
uploadURL: string;
|
|
5
|
+
file: File;
|
|
6
|
+
mimeType: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type CreateVoiceoverParams = {
|
|
10
|
+
videoId: string;
|
|
11
|
+
file: File;
|
|
12
|
+
};
|
|
13
|
+
export declare const getVoiceoverSignedURLs: (data: GetSignedUrlsParams) => Promise<GetSignedUrlsResponse>;
|
|
14
|
+
export declare const uploadVoiceoverAudio: ({ data, }: UploadVoiceoverAudioParams) => Promise<any>;
|
|
15
|
+
export declare const addVoiceoverToVideo: ({ videoId, audioFileName, newVideoTitle, overwriteOriginal, }: {
|
|
16
|
+
videoId: string;
|
|
17
|
+
audioFileName: string;
|
|
18
|
+
newVideoTitle?: string | undefined;
|
|
19
|
+
overwriteOriginal?: boolean | undefined;
|
|
20
|
+
}) => Promise<any>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type WTVListParams = {
|
|
2
|
+
limit?: number;
|
|
3
|
+
page?: number;
|
|
4
|
+
search?: string;
|
|
5
|
+
year?: number;
|
|
6
|
+
ascOrder?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type WTVListItem = {
|
|
9
|
+
animatedGifPath: string;
|
|
10
|
+
make: string;
|
|
11
|
+
model: string;
|
|
12
|
+
thumbnail: string;
|
|
13
|
+
title: string;
|
|
14
|
+
videoId: number;
|
|
15
|
+
videoURL: string;
|
|
16
|
+
year: number;
|
|
17
|
+
};
|
|
18
|
+
export type WTVCopyParams = {
|
|
19
|
+
Title: string;
|
|
20
|
+
FLVName: string;
|
|
21
|
+
AnimatedGifPath: string;
|
|
22
|
+
Year: number;
|
|
23
|
+
Make: string;
|
|
24
|
+
Model: string;
|
|
25
|
+
VideoID: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const getWTVVideos: (props: WTVListParams) => Promise<{
|
|
28
|
+
count: number;
|
|
29
|
+
videos: WTVListItem[];
|
|
30
|
+
}>;
|
|
31
|
+
export declare const copyWTVVideo: (props: WTVCopyParams) => Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
padding?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
iconOther?: JSX.Element;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
hoverBorderColor?: string;
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
margin?: string;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
17
|
+
onClick?: (e?: React.SyntheticEvent | React.SyntheticEvent<Element, Event>) => void;
|
|
18
|
+
showTextOnlyOnHover?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const Button: ({ text, type, icon, iconOther, backgroundColor, borderColor, hoverBorderColor, textColor, disabled, margin, width, fontSize, padding, height, onClick, showTextOnlyOnHover, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface CheckboxI {
|
|
2
|
+
id?: string;
|
|
3
|
+
style?: object;
|
|
4
|
+
className?: string;
|
|
5
|
+
boxSize?: 'sm' | 'lg' | null;
|
|
6
|
+
onChange?: any;
|
|
7
|
+
onClick?: any;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
blueCheck?: boolean;
|
|
12
|
+
grayCheck?: boolean;
|
|
13
|
+
checkGroupIndicator?: boolean;
|
|
14
|
+
width?: string;
|
|
15
|
+
ignoreGrayForAllSelect?: boolean;
|
|
16
|
+
isAutomotive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const CheckboxInput: (props: CheckboxI) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
light?: boolean;
|
|
5
|
+
zIndex?: boolean;
|
|
6
|
+
padding?: string;
|
|
7
|
+
marginTop?: string;
|
|
8
|
+
marginRight?: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
};
|
|
12
|
+
export declare const CloseButton: React.MemoExoticComponent<({ disabled, onClick, light, zIndex, padding, marginTop, marginRight, style, }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CountDown: ({ counter, willStart, onClick, hide, height, width, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IFileInfo {
|
|
3
|
+
name: string;
|
|
4
|
+
size: number;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DragAndDropProps {
|
|
8
|
+
accept?: string;
|
|
9
|
+
cssInputClass?: string;
|
|
10
|
+
fileEncoding?: string;
|
|
11
|
+
inputStyle?: object;
|
|
12
|
+
onDrop: (e: any) => void;
|
|
13
|
+
text?: string;
|
|
14
|
+
height?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
marginTop?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
textStyle?: React.CSSProperties;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
buttonTextColor?: string;
|
|
21
|
+
showAddIcon?: boolean;
|
|
22
|
+
buttonBorder?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const DragAndDrop: ({ accept, inputStyle, onDrop, text, width, height, marginTop, disabled, textStyle, backgroundColor, placeholder, }: DragAndDropProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default DragAndDrop;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
options: {
|
|
4
|
+
value: any;
|
|
5
|
+
label: any;
|
|
6
|
+
}[];
|
|
7
|
+
value: {
|
|
8
|
+
value: any;
|
|
9
|
+
label: any;
|
|
10
|
+
};
|
|
11
|
+
onChange: (value: any) => void;
|
|
12
|
+
isSearchable: boolean;
|
|
13
|
+
extraStyles?: CSSProperties;
|
|
14
|
+
creatable?: boolean;
|
|
15
|
+
isClearable?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
maxMenuHeight?: number;
|
|
18
|
+
defaultValue?: {
|
|
19
|
+
value: any;
|
|
20
|
+
label: any;
|
|
21
|
+
};
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
controlShouldRenderValue?: boolean;
|
|
24
|
+
customComponents?: {
|
|
25
|
+
Option: (props: any) => JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const Dropdown: ({ options, value, onChange, isSearchable, extraStyles, creatable, isClearable, disabled, maxMenuHeight, defaultValue, placeholder, controlShouldRenderValue, customComponents }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
hoverable: ReactNode;
|
|
4
|
+
popup: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
position?: 'top' | 'bottom' | 'above' | 'bottom-left' | 'top-left' | 'right' | 'below';
|
|
7
|
+
width?: string;
|
|
8
|
+
maxWidth?: string;
|
|
9
|
+
padding?: string;
|
|
10
|
+
disableHover?: boolean;
|
|
11
|
+
showTriangle?: boolean;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const HoverPopup: ({ hoverable, className, popup, position, padding, width, maxWidth, disableHover, showTriangle, cursor, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
type?: string;
|
|
3
|
+
width?: string;
|
|
4
|
+
padding?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
8
|
+
type: import("react").HTMLInputTypeAttribute;
|
|
9
|
+
} & Props, "type">;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
isLoading?: boolean;
|
|
3
|
+
error?: boolean | null;
|
|
4
|
+
text?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
onRetry?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const LoadingIndicator: ({ isLoading, error, text, color, height, zIndex, onRetry, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type PreviewProps = {
|
|
2
|
+
onSaveVideo: Function;
|
|
3
|
+
isSaveDisabled?: boolean;
|
|
4
|
+
setInsertAfterSave: (arg: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const PreviewVideoBar: ({ onSaveVideo, isSaveDisabled, setInsertAfterSave, }: PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Location } from 'history';
|
|
2
|
+
interface Props {
|
|
3
|
+
when?: boolean | undefined;
|
|
4
|
+
navigate?: (path: string) => void;
|
|
5
|
+
shouldBlockNavigation: (location: Location) => boolean;
|
|
6
|
+
onConfirm?: Function;
|
|
7
|
+
onDiscard?: Function;
|
|
8
|
+
onStay?: Function;
|
|
9
|
+
stay?: Boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
discardButtonText?: string;
|
|
13
|
+
confirmButtonText?: string;
|
|
14
|
+
showDiscardIcon?: boolean;
|
|
15
|
+
showSaveIcon?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const RouteLeavingGuard: ({ when, navigate, shouldBlockNavigation, onConfirm, onDiscard, onStay, stay, title, text, discardButtonText, confirmButtonText, showDiscardIcon, showSaveIcon, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default RouteLeavingGuard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
left?: React.ReactNode;
|
|
4
|
+
center?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
justify?: 'center' | 'space-between';
|
|
7
|
+
};
|
|
8
|
+
export declare const TopBar: ({ left, right, center }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Logo } from './Logo';
|
|
2
|
+
export { TopBar } from './TopBar';
|
|
3
|
+
export { Container } from './Container';
|
|
4
|
+
export { Input } from './Input';
|
|
5
|
+
export { Button } from './Button';
|
|
6
|
+
export { Spinner } from './Spinner';
|
|
7
|
+
export { LoadingIndicator } from './LoadingIndicator';
|
|
8
|
+
export { Dropdown } from './Dropdown';
|
|
9
|
+
export { CheckboxInput } from './CheckboxInput';
|
|
10
|
+
export { RadioInput } from './inputs/RadioInput';
|
|
11
|
+
export { Modal } from './modal/Modal';
|
|
12
|
+
export { CloseButton } from './CloseButton';
|
|
13
|
+
export { CountDown } from './CountDown';
|
|
14
|
+
export { ModalRecordingSettings } from './modal/ModalRecordingSettings';
|
|
15
|
+
export { ToastNotificationsProvider, useToastNotifications, } from './toast-notifications';
|
|
16
|
+
export { MainWrapper } from './MainWrapper';
|