react-covideo-embed 1.0.18 → 1.0.20
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/build/app/pages/insertVideo/components/VehicleSearch.d.ts +3 -3
- package/build/app/pages/recordv1/ChooseRecordingOptions.d.ts +10 -0
- package/build/app/pages/recordv1/Countdown.d.ts +9 -0
- package/build/app/pages/recordv1/DroplrFilesTabContent.d.ts +8 -0
- package/build/app/pages/recordv1/FolderDropdown.d.ts +17 -0
- package/build/app/pages/recordv1/ModalRecordingVideoSettings.d.ts +5 -0
- package/build/app/pages/recordv1/ModalTeleprompterRecord.d.ts +8 -0
- package/build/app/pages/recordv1/ModalVideoTags.d.ts +2 -0
- package/build/app/pages/recordv1/ProgressCircle.d.ts +8 -0
- package/build/app/pages/recordv1/RecordBoth.d.ts +9 -0
- package/build/app/pages/recordv1/RecordCam.d.ts +9 -0
- package/build/app/pages/recordv1/RecordCamLoader.d.ts +3 -0
- package/build/app/pages/recordv1/RecordHome.d.ts +1 -0
- package/build/app/pages/recordv1/RecorderBody.d.ts +11 -0
- package/build/app/pages/recordv1/RecordingHeadingWithRouteGuard.d.ts +9 -0
- package/build/app/pages/recordv1/ScreenRecorder.d.ts +9 -0
- package/build/app/pages/recordv1/Scroller.d.ts +6 -0
- package/build/app/pages/recordv1/Teleprompter/BaseTeleprompterActions.d.ts +6 -0
- package/build/app/pages/recordv1/Teleprompter/RecordingTeleprompterActions.d.ts +1 -0
- package/build/app/pages/recordv1/Teleprompter/TeleprompterActions.d.ts +6 -0
- package/build/app/pages/recordv1/Teleprompter/TeleprompterDisplay.d.ts +6 -0
- package/build/app/pages/recordv1/UploadLoader.d.ts +17 -0
- package/build/app/pages/recordv1/VideoRecorderActions.d.ts +13 -0
- package/build/app/pages/recordv1/VideoTag.d.ts +1 -0
- package/build/app/pages/recordv1/VideoUploadFolderDropdown.d.ts +25 -0
- package/build/app/pages/recordv1/VirtualBackgroundsButton.d.ts +14 -0
- package/build/app/pages/recordv1/detailsPreview/DetailsPreview.d.ts +2 -0
- package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewAtrributesHeader.d.ts +1 -0
- package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewHeader.d.ts +7 -0
- package/build/app/pages/recordv1/detailsPreview/form/DetailsPreviewVideoAttributes.d.ts +1 -0
- package/build/app/pages/recordv1/detailsPreview/form/DetailsRecordPreviewTags.d.ts +1 -0
- package/build/app/pages/recordv1/detailsPreview/form/VideoRequestDetails.d.ts +14 -0
- package/build/app/pages/recordv1/detailsPreview/types.d.ts +61 -0
- package/build/app/pages/recordv1/routes.d.ts +1 -0
- package/build/app/pages/recordv1/types.d.ts +110 -0
- package/build/app/pages/recordv1/useImageSegmenter.d.ts +10 -0
- package/build/app/pages/recordv1/useRecorder.d.ts +26 -0
- package/build/app/pages/recordv1/useRecorderCountdown.d.ts +5 -0
- package/build/app/pages/recordv1/useRecordingTime.d.ts +5 -0
- package/build/app/pages/recordv1/useVideoRecorderUpload.d.ts +29 -0
- package/build/app/pages/recordv1/utils/browserChecks.d.ts +3 -0
- package/build/app/pages/recordv1/utils/functions.d.ts +32 -0
- package/build/app/pages/recordv1/utils/media.d.ts +13 -0
- package/build/app/pages/recordv1/utils/recorderSettings.d.ts +6 -0
- package/build/app/pages/recordv1/utils/virtualBackgrounds.d.ts +4 -0
- package/build/app/pages/recordv1/virtualBackgrounds/FilesTabContent.d.ts +8 -0
- package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgroundLibraryModal.d.ts +7 -0
- package/build/app/pages/recordv1/virtualBackgrounds/VirtualBackgrounds.d.ts +12 -0
- package/build/app/pages/recordv1/webgl/webglUtils.d.ts +14 -0
- package/build/index.js +213 -332
- package/build/index.js.LICENSE.txt +865 -0
- package/build/lib/api/aws/useAwsSignedUrlQuery.d.ts +11 -0
- package/build/lib/api/aws/useS3UploadMutation.d.ts +87 -0
- package/build/lib/api/customVirtualBackground/customVirtualBackgroundKeys.d.ts +3 -0
- package/build/lib/api/customVirtualBackground/useCustomVirtualBackgroundQuery.d.ts +11 -0
- package/build/lib/api/droplr/droplrAuth.d.ts +13 -0
- package/build/lib/api/droplr/getBoards.d.ts +7 -0
- package/build/lib/api/droplr/getDrop.d.ts +6 -0
- package/build/lib/api/droplr/getDrops.d.ts +40 -0
- package/build/lib/api/droplr/queryKeys.d.ts +12 -0
- package/build/lib/api/droplr/types.d.ts +136 -0
- package/build/lib/api/droplr/uploadDrop.d.ts +1 -0
- package/build/lib/api/folders/foldersKeys.d.ts +3 -0
- package/build/lib/api/folders/getFolders.d.ts +15 -0
- package/build/lib/api/folders/types.d.ts +4 -0
- package/build/lib/api/teleprompterApi.d.ts +16 -0
- package/build/lib/api/types.d.ts +14 -0
- package/build/lib/api/users/automotive/queryKeys.d.ts +4 -0
- package/build/lib/api/users/automotive/useUsersByAutomotiveRolesQuery.d.ts +25 -0
- package/build/lib/api/videoAttributes/useGetAllVideoAttributesQuery.d.ts +7 -0
- package/build/lib/api/videoAttributes/videoAttributesKeys.d.ts +5 -0
- package/build/lib/api/videos/useCreateVideoMutation.d.ts +118 -0
- package/build/lib/api/videos/useEncodeVideoMutation.d.ts +90 -0
- package/build/lib/api/voiceOverApi.d.ts +15 -1
- package/build/lib/components/ButtonSwitch.d.ts +15 -0
- package/build/lib/components/Dropdown.d.ts +2 -1
- package/build/lib/components/NewDropdown.d.ts +95 -0
- package/build/lib/components/NewTextInput.d.ts +1 -0
- package/build/lib/components/Search.d.ts +19 -0
- package/build/lib/components/formik/FormikDropdown.d.ts +12 -0
- package/build/lib/components/formik/FormikErrorMessage.d.ts +4 -0
- package/build/lib/components/formik/FormikInputField.d.ts +8 -0
- package/build/lib/components/formik/FormikLabel.d.ts +8 -0
- package/build/lib/components/formik/FormikTextAreaField.d.ts +8 -0
- package/build/lib/components/index.d.ts +2 -0
- package/build/lib/components/styles/layout.d.ts +33 -0
- package/build/lib/components/styles/typography.d.ts +44 -0
- package/build/lib/context/AuthorizationContext.d.ts +1 -0
- package/build/lib/context/record/functions.d.ts +2 -0
- package/build/lib/context/record/provider.d.ts +27 -0
- package/build/lib/context/record/types.d.ts +32 -0
- package/build/lib/context/teleprompter/provider.d.ts +37 -0
- package/build/lib/context/teleprompter/types.d.ts +12 -0
- package/build/lib/images/VirtualBgIcon.d.ts +2 -0
- package/build/lib/style/theme.d.ts +7 -0
- package/build/lib/utils/productFeature.d.ts +9 -0
- package/images.d.ts +4 -0
- package/package.json +17 -5
- package/yup.d.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PresignedUrl {
|
|
2
|
+
url: string;
|
|
3
|
+
id?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface PresignedUrlParams {
|
|
6
|
+
fileName: string;
|
|
7
|
+
type: string;
|
|
8
|
+
id?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const getAwsSignedUrl: (data: PresignedUrlParams) => Promise<PresignedUrl>;
|
|
11
|
+
export declare const useAwsSignedUrlQuery: (params: PresignedUrlParams, enabled: boolean) => import("react-query").UseQueryResult<PresignedUrl, unknown>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export interface UploadData {
|
|
2
|
+
url: string;
|
|
3
|
+
file: File;
|
|
4
|
+
contentType?: string;
|
|
5
|
+
id?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useS3UploadMutation: () => {
|
|
8
|
+
progress: {
|
|
9
|
+
loaded: number;
|
|
10
|
+
total: number;
|
|
11
|
+
percentage: number;
|
|
12
|
+
};
|
|
13
|
+
data: undefined;
|
|
14
|
+
error: null;
|
|
15
|
+
isError: false;
|
|
16
|
+
isIdle: true;
|
|
17
|
+
isLoading: false;
|
|
18
|
+
isSuccess: false;
|
|
19
|
+
status: "idle";
|
|
20
|
+
mutate: import("react-query").UseMutateFunction<any, unknown, UploadData, unknown>;
|
|
21
|
+
reset: () => void;
|
|
22
|
+
context: unknown;
|
|
23
|
+
failureCount: number;
|
|
24
|
+
isPaused: boolean;
|
|
25
|
+
variables: UploadData | undefined;
|
|
26
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<any, unknown, UploadData, unknown>;
|
|
27
|
+
} | {
|
|
28
|
+
progress: {
|
|
29
|
+
loaded: number;
|
|
30
|
+
total: number;
|
|
31
|
+
percentage: number;
|
|
32
|
+
};
|
|
33
|
+
data: undefined;
|
|
34
|
+
error: null;
|
|
35
|
+
isError: false;
|
|
36
|
+
isIdle: false;
|
|
37
|
+
isLoading: true;
|
|
38
|
+
isSuccess: false;
|
|
39
|
+
status: "loading";
|
|
40
|
+
mutate: import("react-query").UseMutateFunction<any, unknown, UploadData, unknown>;
|
|
41
|
+
reset: () => void;
|
|
42
|
+
context: unknown;
|
|
43
|
+
failureCount: number;
|
|
44
|
+
isPaused: boolean;
|
|
45
|
+
variables: UploadData | undefined;
|
|
46
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<any, unknown, UploadData, unknown>;
|
|
47
|
+
} | {
|
|
48
|
+
progress: {
|
|
49
|
+
loaded: number;
|
|
50
|
+
total: number;
|
|
51
|
+
percentage: number;
|
|
52
|
+
};
|
|
53
|
+
data: undefined;
|
|
54
|
+
error: unknown;
|
|
55
|
+
isError: true;
|
|
56
|
+
isIdle: false;
|
|
57
|
+
isLoading: false;
|
|
58
|
+
isSuccess: false;
|
|
59
|
+
status: "error";
|
|
60
|
+
mutate: import("react-query").UseMutateFunction<any, unknown, UploadData, unknown>;
|
|
61
|
+
reset: () => void;
|
|
62
|
+
context: unknown;
|
|
63
|
+
failureCount: number;
|
|
64
|
+
isPaused: boolean;
|
|
65
|
+
variables: UploadData | undefined;
|
|
66
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<any, unknown, UploadData, unknown>;
|
|
67
|
+
} | {
|
|
68
|
+
progress: {
|
|
69
|
+
loaded: number;
|
|
70
|
+
total: number;
|
|
71
|
+
percentage: number;
|
|
72
|
+
};
|
|
73
|
+
data: any;
|
|
74
|
+
error: null;
|
|
75
|
+
isError: false;
|
|
76
|
+
isIdle: false;
|
|
77
|
+
isLoading: false;
|
|
78
|
+
isSuccess: true;
|
|
79
|
+
status: "success";
|
|
80
|
+
mutate: import("react-query").UseMutateFunction<any, unknown, UploadData, unknown>;
|
|
81
|
+
reset: () => void;
|
|
82
|
+
context: unknown;
|
|
83
|
+
failureCount: number;
|
|
84
|
+
isPaused: boolean;
|
|
85
|
+
variables: UploadData | undefined;
|
|
86
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<any, unknown, UploadData, unknown>;
|
|
87
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ICustomVirtualBackground {
|
|
2
|
+
id: number;
|
|
3
|
+
resellerId: number | null;
|
|
4
|
+
customerId: number | null;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useCustomVirtualBackgroundQuery: () => {
|
|
8
|
+
data: ICustomVirtualBackground[];
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<ICustomVirtualBackground[], unknown>>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare let client: any;
|
|
2
|
+
export declare const checkDropAuth: () => Promise<void>;
|
|
3
|
+
export declare class SharedDrop {
|
|
4
|
+
path: string;
|
|
5
|
+
client: any;
|
|
6
|
+
constructor(client: any);
|
|
7
|
+
get(id: string, options?: {}): Promise<any>;
|
|
8
|
+
list(params?: {}, options?: {}): Promise<{
|
|
9
|
+
count: any;
|
|
10
|
+
hasMore: any;
|
|
11
|
+
results: any;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoardsResponse } from './types';
|
|
2
|
+
export type GetBoardsParams = {
|
|
3
|
+
userId: number;
|
|
4
|
+
customerId: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const getBoards: (params: GetBoardsParams) => Promise<BoardsResponse>;
|
|
7
|
+
export declare const useGetBoards: (params: GetBoardsParams) => import("react-query").UseQueryResult<BoardsResponse, unknown>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DropItem } from './types';
|
|
2
|
+
export type GetDropParams = {
|
|
3
|
+
dropId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const getDrop: (dropId: string) => Promise<DropItem | undefined>;
|
|
6
|
+
export declare const useGetDrop: (params: GetDropParams) => import("react-query").UseQueryResult<DropItem | undefined, unknown>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DropItem } from './types';
|
|
2
|
+
export declare const DropType: {
|
|
3
|
+
FILE: string;
|
|
4
|
+
IMAGE: string;
|
|
5
|
+
VIDEO: string;
|
|
6
|
+
AUDIO: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const enum DROPTYPE_OPTIONS {
|
|
9
|
+
SHARED = "shared",
|
|
10
|
+
OWNED = "owned"
|
|
11
|
+
}
|
|
12
|
+
export type GetDropsParams = {
|
|
13
|
+
dropType: DROPTYPE_OPTIONS;
|
|
14
|
+
search?: string;
|
|
15
|
+
sort?: string;
|
|
16
|
+
order?: string;
|
|
17
|
+
page?: number;
|
|
18
|
+
size?: number;
|
|
19
|
+
boardId?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
variant?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const getDrops: (params: GetDropsParams) => Promise<{
|
|
24
|
+
drops: DropItem[];
|
|
25
|
+
count: number;
|
|
26
|
+
hasMore: any;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const getSharedDrops: ({ page, size, }: {
|
|
29
|
+
page: number;
|
|
30
|
+
size: number;
|
|
31
|
+
}) => Promise<{
|
|
32
|
+
drops: DropItem[];
|
|
33
|
+
count: number;
|
|
34
|
+
hasMore: any;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const useGetDrops: (params: GetDropsParams) => import("react-query").UseQueryResult<{
|
|
37
|
+
drops: DropItem[];
|
|
38
|
+
count: number;
|
|
39
|
+
hasMore: any;
|
|
40
|
+
}, unknown>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetBoardsParams } from './getBoards';
|
|
2
|
+
import { GetDropParams } from './getDrop';
|
|
3
|
+
import { GetDropsParams } from './getDrops';
|
|
4
|
+
export declare const droplrKeys: {
|
|
5
|
+
boards_list: (params: GetBoardsParams) => readonly ["BOARDS", GetBoardsParams];
|
|
6
|
+
drop_list: (params: GetDropsParams) => readonly ["DROPS", GetDropsParams];
|
|
7
|
+
drop_details: (params: GetDropParams) => readonly ["DROP", GetDropParams];
|
|
8
|
+
current_user: () => readonly ["CURRENT_DROPLR_USER"];
|
|
9
|
+
activity_list: (dropId: string) => readonly ["DROPLR_ACTIVITY", string];
|
|
10
|
+
user_tag_list: () => readonly ["USER_TAGS"];
|
|
11
|
+
edit_drop_mutation: () => readonly ["EDIT_DROP"];
|
|
12
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const enum DROP_ACTIVITY_TYPE {
|
|
2
|
+
VIEWED = "DROP_VIEWED",
|
|
3
|
+
DOWNLOADED = "DROP_DOWNLOADED"
|
|
4
|
+
}
|
|
5
|
+
type Access = {
|
|
6
|
+
accessRight: string;
|
|
7
|
+
email: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
};
|
|
10
|
+
type Creator = {
|
|
11
|
+
email: string;
|
|
12
|
+
userId: string;
|
|
13
|
+
};
|
|
14
|
+
type GroupAccess = {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
export interface DroplrBoard {
|
|
18
|
+
accessList: Access[];
|
|
19
|
+
creator?: Creator;
|
|
20
|
+
deleted?: boolean;
|
|
21
|
+
groupsAccessList: GroupAccess[];
|
|
22
|
+
id: string;
|
|
23
|
+
isPublic: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
poweredBy: boolean;
|
|
27
|
+
privacy: string;
|
|
28
|
+
shortlink?: string;
|
|
29
|
+
uploadPrivacy: string;
|
|
30
|
+
userStatus?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CovideoBoard {
|
|
33
|
+
id: number;
|
|
34
|
+
customerId: number;
|
|
35
|
+
userId: number;
|
|
36
|
+
thumbnailUrl: string;
|
|
37
|
+
droplrBoardId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface CombinedBoard extends DroplrBoard {
|
|
40
|
+
thumbnailUrl: string;
|
|
41
|
+
userId?: string;
|
|
42
|
+
customerId?: string;
|
|
43
|
+
}
|
|
44
|
+
export type BoardsResponse = {
|
|
45
|
+
count: number;
|
|
46
|
+
boards: CombinedBoard[];
|
|
47
|
+
};
|
|
48
|
+
export interface CreateBoardBody {
|
|
49
|
+
thumbnailUrl: string;
|
|
50
|
+
userId: number;
|
|
51
|
+
customerId: number;
|
|
52
|
+
accessList: Access[];
|
|
53
|
+
groupsAccessList: GroupAccess[];
|
|
54
|
+
isPublic: boolean;
|
|
55
|
+
name: string;
|
|
56
|
+
poweredBy: boolean;
|
|
57
|
+
privacy: string;
|
|
58
|
+
uploadPrivacy: string;
|
|
59
|
+
password?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface EditBoardBody extends Partial<CreateBoardBody> {
|
|
62
|
+
id: string;
|
|
63
|
+
}
|
|
64
|
+
export type DroplrGetDropsParams = {
|
|
65
|
+
order: string;
|
|
66
|
+
sort_by: string;
|
|
67
|
+
offset: number;
|
|
68
|
+
amount: number;
|
|
69
|
+
board?: string;
|
|
70
|
+
type?: string;
|
|
71
|
+
variant?: string;
|
|
72
|
+
search?: string;
|
|
73
|
+
};
|
|
74
|
+
export type DropItem = {
|
|
75
|
+
id?: string;
|
|
76
|
+
code: string;
|
|
77
|
+
title: string;
|
|
78
|
+
previewMedium: string;
|
|
79
|
+
previewSmall: string;
|
|
80
|
+
type: string;
|
|
81
|
+
content: string;
|
|
82
|
+
boards?: string[];
|
|
83
|
+
tags?: string[];
|
|
84
|
+
shortlink?: string;
|
|
85
|
+
downloadable?: boolean;
|
|
86
|
+
cloneable?: boolean;
|
|
87
|
+
size: number;
|
|
88
|
+
views: number;
|
|
89
|
+
variant: string;
|
|
90
|
+
password?: string;
|
|
91
|
+
privacy?: string;
|
|
92
|
+
selected?: boolean;
|
|
93
|
+
createdAt?: number;
|
|
94
|
+
groupsAccessList?: Array<any>;
|
|
95
|
+
owner: number;
|
|
96
|
+
lastAccess: number;
|
|
97
|
+
};
|
|
98
|
+
export type UpdateDropBody = {
|
|
99
|
+
dropId: string;
|
|
100
|
+
boards?: string[];
|
|
101
|
+
downloadable?: boolean;
|
|
102
|
+
title?: string;
|
|
103
|
+
tags?: string[];
|
|
104
|
+
privacy?: string;
|
|
105
|
+
password?: string;
|
|
106
|
+
groupsAccessList?: GroupAccess[];
|
|
107
|
+
};
|
|
108
|
+
export type DownloadDropBody = {
|
|
109
|
+
dropId: string;
|
|
110
|
+
fileName?: string;
|
|
111
|
+
};
|
|
112
|
+
type SimplifiedUser = {
|
|
113
|
+
firstName?: string;
|
|
114
|
+
lastName?: string;
|
|
115
|
+
userEmail?: string;
|
|
116
|
+
};
|
|
117
|
+
export type SimplifiedDropActivity = {
|
|
118
|
+
id: string;
|
|
119
|
+
type: string;
|
|
120
|
+
user: SimplifiedUser;
|
|
121
|
+
text: string;
|
|
122
|
+
createdAt: number;
|
|
123
|
+
};
|
|
124
|
+
type ActivityMetaData = {
|
|
125
|
+
userEmail: string;
|
|
126
|
+
};
|
|
127
|
+
export type DropActivity = {
|
|
128
|
+
createdAt: number;
|
|
129
|
+
dropId: string;
|
|
130
|
+
id: string;
|
|
131
|
+
teamId: string;
|
|
132
|
+
type: DROP_ACTIVITY_TYPE;
|
|
133
|
+
userId: string;
|
|
134
|
+
metadata: ActivityMetaData;
|
|
135
|
+
};
|
|
136
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const uploadDrop: (title: string, type: string, content: any, progressUpdate?: ((total: number, uploaded: number, percent: number) => void) | undefined) => Promise<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Folder = {
|
|
2
|
+
access?: string;
|
|
3
|
+
folderId: number | string;
|
|
4
|
+
name: string;
|
|
5
|
+
isDeletable: boolean;
|
|
6
|
+
userId?: number;
|
|
7
|
+
isFolderShared?: boolean;
|
|
8
|
+
sharedBy?: string;
|
|
9
|
+
includeNewUsers?: boolean;
|
|
10
|
+
folderAccessPermission?: string;
|
|
11
|
+
};
|
|
12
|
+
export type GetFolderParams = {
|
|
13
|
+
getShared: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const useGetFolders: (params?: GetFolderParams) => import("react-query").UseQueryResult<Folder[], unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type CreateTeleprompterScriptParams = {
|
|
2
|
+
data: object;
|
|
3
|
+
scriptId?: string;
|
|
4
|
+
};
|
|
5
|
+
export type GetScriptsParams = {
|
|
6
|
+
start?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
search?: string;
|
|
9
|
+
field?: string;
|
|
10
|
+
order?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getScripts: (params: GetScriptsParams) => Promise<any>;
|
|
13
|
+
export declare const getScript: (scriptId: string) => Promise<any>;
|
|
14
|
+
export declare const createScript: ({ data, }: CreateTeleprompterScriptParams) => Promise<any>;
|
|
15
|
+
export declare const updateScript: ({ scriptId, data, }: CreateTeleprompterScriptParams) => Promise<any>;
|
|
16
|
+
export declare const deleteScript: (scriptId: string) => Promise<any>;
|
package/build/lib/api/types.d.ts
CHANGED
|
@@ -42,3 +42,17 @@ export interface VideoTranscriptionBody {
|
|
|
42
42
|
transcript?: string;
|
|
43
43
|
enabled: number;
|
|
44
44
|
}
|
|
45
|
+
export type VideoAttribute = {
|
|
46
|
+
attributeId: number;
|
|
47
|
+
customerId: number;
|
|
48
|
+
departments: string[];
|
|
49
|
+
default?: string;
|
|
50
|
+
dropdownValues: Array<any>;
|
|
51
|
+
index: number;
|
|
52
|
+
isLocked: number;
|
|
53
|
+
isReadOnly: number;
|
|
54
|
+
isRequired: number;
|
|
55
|
+
slug: string;
|
|
56
|
+
title: string;
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryResult } from 'react-query';
|
|
2
|
+
export declare const getUsersByAutomotiveRoles: ({ customerId, role, }: {
|
|
3
|
+
customerId: string;
|
|
4
|
+
role: string;
|
|
5
|
+
}) => Promise<any>;
|
|
6
|
+
interface IGetUsersByAutomotiveRoleParams {
|
|
7
|
+
customerId: string;
|
|
8
|
+
role: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UsersByAutmotiveRolesResponse {
|
|
11
|
+
id: number;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
email: string;
|
|
15
|
+
phone: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const useGetUsersByAutomotiveRolesQuery: ({ params, enabled, }: {
|
|
18
|
+
params: IGetUsersByAutomotiveRoleParams[];
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
}) => {
|
|
21
|
+
results: UseQueryResult<UsersByAutmotiveRolesResponse[], unknown>[];
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
isError: boolean;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryListParams, VideoAttribute } from '../types';
|
|
2
|
+
export interface IAttributesResponse {
|
|
3
|
+
count: number;
|
|
4
|
+
attributes: VideoAttribute[];
|
|
5
|
+
}
|
|
6
|
+
export declare const getAttributes: ({ page, size, filterByDepartment, }: QueryListParams) => Promise<IAttributesResponse>;
|
|
7
|
+
export declare const useGetAllVideoAttributesQuery: (params: QueryListParams) => import("react-query").UseQueryResult<IAttributesResponse, unknown>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
interface CreateVideoDataTags {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
__isNew__?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface CreateVideoAttributes {
|
|
7
|
+
value: string;
|
|
8
|
+
attributeId: number;
|
|
9
|
+
}
|
|
10
|
+
interface CreateVideoRequestRequest {
|
|
11
|
+
advisorId?: number;
|
|
12
|
+
videoType?: string;
|
|
13
|
+
repairOrderNumber?: string;
|
|
14
|
+
vin?: string;
|
|
15
|
+
note?: string;
|
|
16
|
+
customerName?: string;
|
|
17
|
+
}
|
|
18
|
+
interface VideoData {
|
|
19
|
+
title: string;
|
|
20
|
+
filename: string;
|
|
21
|
+
id?: number | string;
|
|
22
|
+
isFreemium?: boolean;
|
|
23
|
+
isGuide?: boolean;
|
|
24
|
+
folder?: string | number;
|
|
25
|
+
videoTags?: CreateVideoDataTags[];
|
|
26
|
+
videoAttributeValues?: CreateVideoAttributes[];
|
|
27
|
+
videoRequest?: CreateVideoRequestRequest;
|
|
28
|
+
}
|
|
29
|
+
export interface CreateVideoResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
url: string;
|
|
32
|
+
html: string;
|
|
33
|
+
id: string;
|
|
34
|
+
videoId: string;
|
|
35
|
+
data?: any;
|
|
36
|
+
}
|
|
37
|
+
export declare const useCreateVideoMutation: () => {
|
|
38
|
+
progress: {
|
|
39
|
+
loaded: number;
|
|
40
|
+
total: number;
|
|
41
|
+
percentage: number;
|
|
42
|
+
};
|
|
43
|
+
data: undefined;
|
|
44
|
+
error: null;
|
|
45
|
+
isError: false;
|
|
46
|
+
isIdle: true;
|
|
47
|
+
isLoading: false;
|
|
48
|
+
isSuccess: false;
|
|
49
|
+
status: "idle";
|
|
50
|
+
mutate: import("react-query").UseMutateFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
51
|
+
reset: () => void;
|
|
52
|
+
context: unknown;
|
|
53
|
+
failureCount: number;
|
|
54
|
+
isPaused: boolean;
|
|
55
|
+
variables: VideoData | undefined;
|
|
56
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
57
|
+
} | {
|
|
58
|
+
progress: {
|
|
59
|
+
loaded: number;
|
|
60
|
+
total: number;
|
|
61
|
+
percentage: number;
|
|
62
|
+
};
|
|
63
|
+
data: undefined;
|
|
64
|
+
error: null;
|
|
65
|
+
isError: false;
|
|
66
|
+
isIdle: false;
|
|
67
|
+
isLoading: true;
|
|
68
|
+
isSuccess: false;
|
|
69
|
+
status: "loading";
|
|
70
|
+
mutate: import("react-query").UseMutateFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
71
|
+
reset: () => void;
|
|
72
|
+
context: unknown;
|
|
73
|
+
failureCount: number;
|
|
74
|
+
isPaused: boolean;
|
|
75
|
+
variables: VideoData | undefined;
|
|
76
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
77
|
+
} | {
|
|
78
|
+
progress: {
|
|
79
|
+
loaded: number;
|
|
80
|
+
total: number;
|
|
81
|
+
percentage: number;
|
|
82
|
+
};
|
|
83
|
+
data: undefined;
|
|
84
|
+
error: unknown;
|
|
85
|
+
isError: true;
|
|
86
|
+
isIdle: false;
|
|
87
|
+
isLoading: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
status: "error";
|
|
90
|
+
mutate: import("react-query").UseMutateFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
91
|
+
reset: () => void;
|
|
92
|
+
context: unknown;
|
|
93
|
+
failureCount: number;
|
|
94
|
+
isPaused: boolean;
|
|
95
|
+
variables: VideoData | undefined;
|
|
96
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
97
|
+
} | {
|
|
98
|
+
progress: {
|
|
99
|
+
loaded: number;
|
|
100
|
+
total: number;
|
|
101
|
+
percentage: number;
|
|
102
|
+
};
|
|
103
|
+
data: CreateVideoResponse;
|
|
104
|
+
error: null;
|
|
105
|
+
isError: false;
|
|
106
|
+
isIdle: false;
|
|
107
|
+
isLoading: false;
|
|
108
|
+
isSuccess: true;
|
|
109
|
+
status: "success";
|
|
110
|
+
mutate: import("react-query").UseMutateFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
111
|
+
reset: () => void;
|
|
112
|
+
context: unknown;
|
|
113
|
+
failureCount: number;
|
|
114
|
+
isPaused: boolean;
|
|
115
|
+
variables: VideoData | undefined;
|
|
116
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<CreateVideoResponse, unknown, VideoData, unknown>;
|
|
117
|
+
};
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
interface EncodeData {
|
|
2
|
+
videoId: string;
|
|
3
|
+
customerId: string;
|
|
4
|
+
}
|
|
5
|
+
interface EncodeVideoResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
job_id: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const useEncodeVideoMutation: () => {
|
|
10
|
+
progress: {
|
|
11
|
+
loaded: number;
|
|
12
|
+
total: number;
|
|
13
|
+
percentage: number;
|
|
14
|
+
};
|
|
15
|
+
data: undefined;
|
|
16
|
+
error: null;
|
|
17
|
+
isError: false;
|
|
18
|
+
isIdle: true;
|
|
19
|
+
isLoading: false;
|
|
20
|
+
isSuccess: false;
|
|
21
|
+
status: "idle";
|
|
22
|
+
mutate: import("react-query").UseMutateFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
23
|
+
reset: () => void;
|
|
24
|
+
context: unknown;
|
|
25
|
+
failureCount: number;
|
|
26
|
+
isPaused: boolean;
|
|
27
|
+
variables: EncodeData | undefined;
|
|
28
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
29
|
+
} | {
|
|
30
|
+
progress: {
|
|
31
|
+
loaded: number;
|
|
32
|
+
total: number;
|
|
33
|
+
percentage: number;
|
|
34
|
+
};
|
|
35
|
+
data: undefined;
|
|
36
|
+
error: null;
|
|
37
|
+
isError: false;
|
|
38
|
+
isIdle: false;
|
|
39
|
+
isLoading: true;
|
|
40
|
+
isSuccess: false;
|
|
41
|
+
status: "loading";
|
|
42
|
+
mutate: import("react-query").UseMutateFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
43
|
+
reset: () => void;
|
|
44
|
+
context: unknown;
|
|
45
|
+
failureCount: number;
|
|
46
|
+
isPaused: boolean;
|
|
47
|
+
variables: EncodeData | undefined;
|
|
48
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
49
|
+
} | {
|
|
50
|
+
progress: {
|
|
51
|
+
loaded: number;
|
|
52
|
+
total: number;
|
|
53
|
+
percentage: number;
|
|
54
|
+
};
|
|
55
|
+
data: undefined;
|
|
56
|
+
error: unknown;
|
|
57
|
+
isError: true;
|
|
58
|
+
isIdle: false;
|
|
59
|
+
isLoading: false;
|
|
60
|
+
isSuccess: false;
|
|
61
|
+
status: "error";
|
|
62
|
+
mutate: import("react-query").UseMutateFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
63
|
+
reset: () => void;
|
|
64
|
+
context: unknown;
|
|
65
|
+
failureCount: number;
|
|
66
|
+
isPaused: boolean;
|
|
67
|
+
variables: EncodeData | undefined;
|
|
68
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
69
|
+
} | {
|
|
70
|
+
progress: {
|
|
71
|
+
loaded: number;
|
|
72
|
+
total: number;
|
|
73
|
+
percentage: number;
|
|
74
|
+
};
|
|
75
|
+
data: EncodeVideoResponse;
|
|
76
|
+
error: null;
|
|
77
|
+
isError: false;
|
|
78
|
+
isIdle: false;
|
|
79
|
+
isLoading: false;
|
|
80
|
+
isSuccess: true;
|
|
81
|
+
status: "success";
|
|
82
|
+
mutate: import("react-query").UseMutateFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
83
|
+
reset: () => void;
|
|
84
|
+
context: unknown;
|
|
85
|
+
failureCount: number;
|
|
86
|
+
isPaused: boolean;
|
|
87
|
+
variables: EncodeData | undefined;
|
|
88
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<EncodeVideoResponse, unknown, EncodeData, unknown>;
|
|
89
|
+
};
|
|
90
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetSignedUrlsParams, GetSignedUrlsResponse } from '.';
|
|
1
|
+
import { GetSignedUrlsParams, GetSignedUrlsResponse, QueryListParams } from '.';
|
|
2
2
|
export type UploadVoiceoverAudioParams = {
|
|
3
3
|
data: {
|
|
4
4
|
uploadURL: string;
|
|
@@ -18,3 +18,17 @@ export declare const addVoiceoverToVideo: ({ videoId, audioFileName, newVideoTit
|
|
|
18
18
|
newVideoTitle?: string | undefined;
|
|
19
19
|
overwriteOriginal?: boolean | undefined;
|
|
20
20
|
}) => Promise<any>;
|
|
21
|
+
export type Tag = {
|
|
22
|
+
id?: number;
|
|
23
|
+
tagId?: string;
|
|
24
|
+
tag?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const getTags: ({ page, size, search, all, sort, refresh, }: QueryListParams) => Promise<any>;
|
|
29
|
+
export declare const getVideoTags: ({ videoId }: any) => Promise<{
|
|
30
|
+
videoTags: object[];
|
|
31
|
+
}>;
|
|
32
|
+
export declare const putVideoTags: (videoId: string, data: object[]) => Promise<{
|
|
33
|
+
videoTags: any;
|
|
34
|
+
}>;
|