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,18 @@
|
|
|
1
|
+
interface CheckboxI {
|
|
2
|
+
id?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
boxSize?: 'sm' | 'lg' | null;
|
|
5
|
+
onChange?: any;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
blueCheck?: boolean;
|
|
11
|
+
grayCheck?: boolean;
|
|
12
|
+
checkGroupIndicator?: boolean;
|
|
13
|
+
width?: string;
|
|
14
|
+
ignoreGrayForAllSelect?: boolean;
|
|
15
|
+
isAutomotive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const CheckboxInput: (props: CheckboxI) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface RadioProps {
|
|
3
|
+
name: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
text?: string | React.ReactNode;
|
|
6
|
+
removePadding?: boolean;
|
|
7
|
+
onChange?: (e?: any) => void;
|
|
8
|
+
checked?: any;
|
|
9
|
+
value: string | number | string[];
|
|
10
|
+
onClick?: (e?: any) => void;
|
|
11
|
+
checkedColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const RadioInput: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
widthOnDesktop?: string | number;
|
|
5
|
+
disableFullScreen?: boolean;
|
|
6
|
+
style?: object;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
overrideBodyHeight?: boolean;
|
|
9
|
+
bodyOverflowY?: string;
|
|
10
|
+
bodyOverflowX?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Modal: ({ style, children, widthOnDesktop, disableFullScreen, maxHeight, overrideBodyHeight, bodyOverflowY, bodyOverflowX, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
discardButtonText?: string;
|
|
6
|
+
confirmButtonText?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
showDiscardIcon?: boolean;
|
|
9
|
+
showSaveIcon?: boolean;
|
|
10
|
+
onClickDiscardButton: () => void;
|
|
11
|
+
onClickConfirmButton: () => void;
|
|
12
|
+
handleModalClose?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const ModalLeave: ({ open, disabled, title, text, discardButtonText, confirmButtonText, onClickDiscardButton, onClickConfirmButton, showDiscardIcon, showSaveIcon, handleModalClose, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
text?: any;
|
|
5
|
+
handleModalClose: () => void;
|
|
6
|
+
handleSubmit: (data: object) => void;
|
|
7
|
+
initialSettings: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const ModalRecordingSettings: ({ disabled, handleModalClose, handleSubmit, initialSettings, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
widthOnDesktop?: string | number;
|
|
5
|
+
disableFullScreen?: boolean;
|
|
6
|
+
style?: object;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
overrideBodyHeight?: boolean;
|
|
9
|
+
bodyOverflowY?: string;
|
|
10
|
+
bodyOverflowX?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Modal: ({ style, children, widthOnDesktop, disableFullScreen, maxHeight, overrideBodyHeight, bodyOverflowY, bodyOverflowX, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
label: string;
|
|
4
|
+
defaultValue: string;
|
|
5
|
+
secondaryButtonText: string;
|
|
6
|
+
primaryButtonText: string;
|
|
7
|
+
handleSubmit: (value: string) => void;
|
|
8
|
+
handleModalClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalInputText: ({ title, label, defaultValue, primaryButtonText, secondaryButtonText, handleModalClose, handleSubmit, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
discardButtonText?: string;
|
|
6
|
+
confirmButtonText?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
showDiscardIcon?: boolean;
|
|
9
|
+
showSaveIcon?: boolean;
|
|
10
|
+
onClickDiscardButton: () => void;
|
|
11
|
+
onClickConfirmButton: () => void;
|
|
12
|
+
handleModalClose?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const ModalLeave: ({ open, disabled, title, text, discardButtonText, confirmButtonText, onClickDiscardButton, onClickConfirmButton, showDiscardIcon, showSaveIcon, handleModalClose, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
secondaryButtonText: string;
|
|
6
|
+
primaryButtonText: string;
|
|
7
|
+
handleSubmit: any;
|
|
8
|
+
handleModalClose: () => void;
|
|
9
|
+
primaryButtonType?: 'danger' | 'default';
|
|
10
|
+
};
|
|
11
|
+
export declare const ModalPrompt: ({ title, content, primaryButtonText, secondaryButtonText, handleModalClose, handleSubmit, primaryButtonType, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type UploadProps = {
|
|
2
|
+
handleModalClose: () => void;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onSuccess: (data: number[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ModalUpload: ({ handleModalClose, disabled, onSuccess, }: UploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUploadingData } from './VideoUpload';
|
|
2
|
+
type MultipleUploadProps = {
|
|
3
|
+
progress: number;
|
|
4
|
+
uploadingData: IUploadingData;
|
|
5
|
+
setUploadingData: (arg: IUploadingData) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const MultipleUploadList: ({ progress, uploadingData, setUploadingData, }: MultipleUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum View {
|
|
2
|
+
FORM = 0,
|
|
3
|
+
UPLOADING = 1,
|
|
4
|
+
CREATE = 2,
|
|
5
|
+
ENCODE = 3
|
|
6
|
+
}
|
|
7
|
+
export interface IUploadingData {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
type UploadProps = {
|
|
11
|
+
handleModalClose: () => void;
|
|
12
|
+
onSuccess: (data: number[]) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const VideoUpload: ({ handleModalClose, onSuccess }: UploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default VideoUpload;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ContentBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ContentFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
type InputLabelProps = {
|
|
5
|
+
isAddMoreEnabled?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const InputLabel: import("styled-components").StyledComponent<"label", any, InputLabelProps, never>;
|
|
9
|
+
export declare const UploadFieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const FlexContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const Skill: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const ProgressData: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const ProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const UploadData: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const UploadingHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
export declare const CancelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ENVIRONMENT = 'sandbox' | 'production';
|
|
2
|
+
export declare const JWT_COOKIE_NAME = "react-covideo-embed-jwt";
|
|
3
|
+
export declare let token: any;
|
|
4
|
+
export declare let apiExpress: string;
|
|
5
|
+
export declare const updateToken: (tokenNew: string, hasExternalJwt?: boolean) => void;
|
|
6
|
+
export declare const updateEnv: (env: ENVIRONMENT) => void;
|
|
7
|
+
export declare let options: {
|
|
8
|
+
bearerToken: {
|
|
9
|
+
Authorization: string;
|
|
10
|
+
};
|
|
11
|
+
headers: {
|
|
12
|
+
Authorization: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const getUpdatedHeader: () => {
|
|
16
|
+
bearerToken: {
|
|
17
|
+
Authorization: string;
|
|
18
|
+
};
|
|
19
|
+
headers: {
|
|
20
|
+
Authorization: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const apiOrigin = "https://www.covideo.com/api/v2.0";
|
|
24
|
+
export declare const s3Origin = "https://eiy0talp86.execute-api.us-east-1.amazonaws.com/dev/";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum AutomotiveRole {
|
|
2
|
+
NO_ROLE = "0",
|
|
3
|
+
TECHNICIAN = "1",
|
|
4
|
+
SERVICE_ADVISOR = "2",
|
|
5
|
+
SERVICE_MANAGER = "3",
|
|
6
|
+
SALESPERSON = "4",
|
|
7
|
+
SALES_MANAGER = "5"
|
|
8
|
+
}
|
|
9
|
+
export declare const automotiveRoleOptions: {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum VideoTypeSales {
|
|
2
|
+
NoType = "",
|
|
3
|
+
Marketing = "Marketing",
|
|
4
|
+
Prospecting = "Prospecting",
|
|
5
|
+
RespondToInquiry = "Respond to Inquiry",
|
|
6
|
+
ThanksForYourBusiness = "Thanks For Your Business"
|
|
7
|
+
}
|
|
8
|
+
export declare enum VideoType {
|
|
9
|
+
NoType = "",
|
|
10
|
+
AdditionalRepair = "Additional Repair",
|
|
11
|
+
RepairInquiry = "Repair inquiry",
|
|
12
|
+
RegularService = "Regular service",
|
|
13
|
+
ServiceReminder = "Service reminder",
|
|
14
|
+
QuoteRequest = "Quote request"
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { VideoStatus } from './VideoStatus';
|
|
2
|
+
export { AutomotiveRole, automotiveRoleOptions } from './AutomotiveRole';
|
|
3
|
+
export { VideoEmailStatus } from './VideoEmailStatus';
|
|
4
|
+
export { VideoTypeSales } from './VideoType';
|
|
5
|
+
export { VideoType } from './VideoType';
|
|
6
|
+
export { PackageName } from './PackageName';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ActionDispatchContext: import("react").Context<any>;
|
|
3
|
+
export declare const ActionDispatchProvider: ({ children }: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ActionDispatchConsumer: import("react").Consumer<any>;
|
|
5
|
+
export declare const useActionDispatchContextState: () => any;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { GlobalAction } from './types';
|
|
3
|
+
interface Intercom {
|
|
4
|
+
app_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
user_id: number;
|
|
8
|
+
user_hash: string;
|
|
9
|
+
cv_user_id: number;
|
|
10
|
+
free_trial: boolean;
|
|
11
|
+
signup_date: string;
|
|
12
|
+
purchase_date: string;
|
|
13
|
+
customer_id: number;
|
|
14
|
+
customer_name: string;
|
|
15
|
+
reseller_id: number;
|
|
16
|
+
reseller_name: string;
|
|
17
|
+
auto: boolean;
|
|
18
|
+
admin: boolean;
|
|
19
|
+
resellerAdmin: boolean;
|
|
20
|
+
user_active: boolean;
|
|
21
|
+
last_active: string;
|
|
22
|
+
v1: boolean;
|
|
23
|
+
v2: boolean;
|
|
24
|
+
v3: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare enum VideoQualityType {
|
|
27
|
+
'FHD' = "1080",
|
|
28
|
+
'4K' = "4096"
|
|
29
|
+
}
|
|
30
|
+
declare enum VideoEditingType {
|
|
31
|
+
'Basic' = "Basic",
|
|
32
|
+
'Advanced' = "Advanced"
|
|
33
|
+
}
|
|
34
|
+
export interface PackageProduct {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
value?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface PackageDetails {
|
|
40
|
+
id: number;
|
|
41
|
+
stripePackageId: string;
|
|
42
|
+
products: {
|
|
43
|
+
[key: number]: PackageProduct;
|
|
44
|
+
};
|
|
45
|
+
maxVideosCreated: number;
|
|
46
|
+
monthlyVideos: number;
|
|
47
|
+
maxLength: number;
|
|
48
|
+
maxQuality: VideoQualityType;
|
|
49
|
+
editingType: VideoEditingType;
|
|
50
|
+
}
|
|
51
|
+
export interface UserData {
|
|
52
|
+
user?: any;
|
|
53
|
+
uid: string;
|
|
54
|
+
userId: string;
|
|
55
|
+
customerId: string;
|
|
56
|
+
resellerId: string;
|
|
57
|
+
firstName: string;
|
|
58
|
+
lastName: string;
|
|
59
|
+
eleadEnabled: boolean;
|
|
60
|
+
admin: boolean | string;
|
|
61
|
+
resellerAdmin: boolean | string;
|
|
62
|
+
trial: boolean;
|
|
63
|
+
notifyMe: boolean;
|
|
64
|
+
access: string;
|
|
65
|
+
verified: number;
|
|
66
|
+
captions: boolean;
|
|
67
|
+
vin: boolean;
|
|
68
|
+
iat: number;
|
|
69
|
+
exp: number;
|
|
70
|
+
intercom: Intercom;
|
|
71
|
+
showWelcome: boolean;
|
|
72
|
+
salesforceIntegration: boolean;
|
|
73
|
+
autoTranscribe: boolean;
|
|
74
|
+
wheelsTV: boolean;
|
|
75
|
+
webEmailEnabled: Boolean;
|
|
76
|
+
allowDelete: Boolean;
|
|
77
|
+
webShare: Boolean;
|
|
78
|
+
timeZone: string;
|
|
79
|
+
isCompanyAdmin: boolean;
|
|
80
|
+
reseller?: {
|
|
81
|
+
dealer: number;
|
|
82
|
+
customerId: string;
|
|
83
|
+
resellerReportingEnabled: number;
|
|
84
|
+
};
|
|
85
|
+
videoCount: number;
|
|
86
|
+
totalLogins: number;
|
|
87
|
+
droplrAccess: boolean;
|
|
88
|
+
affiliateAccess: boolean;
|
|
89
|
+
authCalled?: boolean;
|
|
90
|
+
customer?: any;
|
|
91
|
+
email: string;
|
|
92
|
+
phone1: string;
|
|
93
|
+
onboarded?: boolean;
|
|
94
|
+
transcriptionAccess?: boolean;
|
|
95
|
+
playButtonPosition?: string;
|
|
96
|
+
signupDate?: string;
|
|
97
|
+
trialAccount: boolean;
|
|
98
|
+
automotiveRole: string;
|
|
99
|
+
vdpEnabled: boolean;
|
|
100
|
+
markVideosAsSent: number | null;
|
|
101
|
+
reactionsPreference: number | null;
|
|
102
|
+
}
|
|
103
|
+
export interface IContextProps {
|
|
104
|
+
userData: UserData;
|
|
105
|
+
jwt: string | undefined;
|
|
106
|
+
setJwt: (jwt: string | undefined) => void;
|
|
107
|
+
dispatch?: React.Dispatch<GlobalAction>;
|
|
108
|
+
}
|
|
109
|
+
type Props = {
|
|
110
|
+
initialUser?: any;
|
|
111
|
+
children: ReactNode;
|
|
112
|
+
};
|
|
113
|
+
export declare const AuthorizationContextProvider: ({ initialUser, children, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
114
|
+
export declare const useAuthorizationContext: () => IContextProps;
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ENVIRONMENT } from 'lib/config';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface ConfigurationProviderProps {
|
|
4
|
+
token?: string;
|
|
5
|
+
env?: ENVIRONMENT;
|
|
6
|
+
onVideoInsert?: (shareData: {
|
|
7
|
+
url: string;
|
|
8
|
+
html: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
onVideoInsertError?: (error: unknown) => void;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
hasExternalJwt?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const useConfigurationContext: () => ConfigurationProviderProps;
|
|
15
|
+
export declare const ConfigurationProvider: React.FC<ConfigurationProviderProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
interface ActionTypeRequest {
|
|
2
|
+
type: string;
|
|
3
|
+
meta?: any;
|
|
4
|
+
}
|
|
5
|
+
interface ActionTypeSuccess {
|
|
6
|
+
type: string;
|
|
7
|
+
payload?: any;
|
|
8
|
+
meta?: any;
|
|
9
|
+
}
|
|
10
|
+
interface ActionTypeFailure {
|
|
11
|
+
type: string;
|
|
12
|
+
payload?: any;
|
|
13
|
+
meta?: any;
|
|
14
|
+
error?: boolean | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ActionType {
|
|
17
|
+
type: string;
|
|
18
|
+
payload?: any;
|
|
19
|
+
meta?: any;
|
|
20
|
+
error?: boolean | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const requestActionCreator: ({ type, meta }: ActionTypeRequest) => {
|
|
23
|
+
type: string;
|
|
24
|
+
meta: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const successActionCreator: ({ type, payload, meta, }: ActionTypeSuccess) => {
|
|
27
|
+
type: string;
|
|
28
|
+
payload: any;
|
|
29
|
+
meta: any;
|
|
30
|
+
};
|
|
31
|
+
export declare const failureActionCreator: ({ type, payload, meta, error, }: ActionTypeFailure) => {
|
|
32
|
+
type: string;
|
|
33
|
+
payload: any;
|
|
34
|
+
meta: any;
|
|
35
|
+
error: boolean | null;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IContextProps } from './AuthorizationContext';
|
|
2
|
+
type GlobalAction = {
|
|
3
|
+
continueLoading?: boolean;
|
|
4
|
+
type: string;
|
|
5
|
+
payload?: any;
|
|
6
|
+
error?: string;
|
|
7
|
+
pathname?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const authReducer: (state: IContextProps, action: GlobalAction) => IContextProps;
|
|
10
|
+
export declare const AUTH_ACTIONS: {
|
|
11
|
+
JWT_DECODED: string;
|
|
12
|
+
GET_USER_START: string;
|
|
13
|
+
GET_USER_ERROR: string;
|
|
14
|
+
GET_USER_SUCCESS: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|