@myinterview/widget-react 1.0.54 → 1.0.55
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/cjs/components/Errors.d.ts +2 -2
- package/dist/cjs/index.js +10418 -418
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/candidateSessionInterface.d.ts +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +4 -4
- package/dist/cjs/interfaces/jobInterface.d.ts +2 -2
- package/dist/cjs/interfaces/recorderInterface.d.ts +2 -2
- package/dist/cjs/interfaces/widgetInterface.d.ts +5 -5
- package/dist/cjs/services/session.service.d.ts +1 -1
- package/dist/cjs/utils/device.utils.d.ts +1 -1
- package/dist/esm/components/Errors.d.ts +2 -2
- package/dist/esm/index.js +10418 -418
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/candidateSessionInterface.d.ts +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +4 -4
- package/dist/esm/interfaces/jobInterface.d.ts +2 -2
- package/dist/esm/interfaces/recorderInterface.d.ts +2 -2
- package/dist/esm/interfaces/widgetInterface.d.ts +5 -5
- package/dist/esm/services/session.service.d.ts +1 -1
- package/dist/esm/utils/device.utils.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/package.json +25 -28
|
@@ -31,7 +31,7 @@ export declare const enum CandidateSessionWarnings {
|
|
|
31
31
|
OverconstrainedError = "OverconstrainedError",
|
|
32
32
|
SecurityError = "SecurityError"
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type CandidateSessionSourceType = 'direct' | 'email' | 'sms' | 'email_reminder' | 'sms_reminder';
|
|
35
35
|
export declare const enum CandidateSessionSourceMap {
|
|
36
36
|
direct_start_inter = "direct",
|
|
37
37
|
reminder_start_inter = "email_reminder",
|
|
@@ -3,7 +3,7 @@ import { ICandidate } from './candidateInterface';
|
|
|
3
3
|
import { ICompany } from './companyInterface';
|
|
4
4
|
import { IClientJob, IClientQuestion, IJob, IQuestion } from './jobInterface';
|
|
5
5
|
import { IVideo } from './videoInterface';
|
|
6
|
-
export
|
|
6
|
+
export type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
7
7
|
export interface IOnFinish {
|
|
8
8
|
redirectUrl?: string;
|
|
9
9
|
video_id: string;
|
|
@@ -11,7 +11,7 @@ export interface IOnFinish {
|
|
|
11
11
|
export interface IOnError {
|
|
12
12
|
messageType: IMessageType;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
|
|
15
15
|
interface IConfig {
|
|
16
16
|
auth: string;
|
|
17
17
|
onWidgetClicked?: () => void;
|
|
@@ -31,7 +31,7 @@ interface IConfig {
|
|
|
31
31
|
hideIntercom?: boolean;
|
|
32
32
|
disablePractice?: boolean;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
|
|
35
35
|
practiceQuestions?: IClientQuestion[];
|
|
36
36
|
};
|
|
37
37
|
export interface IWidgetConfig {
|
|
@@ -47,7 +47,7 @@ export interface IWidgetConfig {
|
|
|
47
47
|
styleUrls?: string | string[];
|
|
48
48
|
fontsUrls?: string | string[];
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
|
|
51
51
|
job: IClientJob;
|
|
52
52
|
config: IClientConfig;
|
|
53
53
|
};
|
|
@@ -7,7 +7,7 @@ export interface IQuestion {
|
|
|
7
7
|
videoQuestion?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
11
11
|
attempts?: number;
|
|
12
12
|
duration?: number;
|
|
13
13
|
thinkingTime?: number;
|
|
@@ -27,6 +27,6 @@ export interface IJob {
|
|
|
27
27
|
company_id?: string;
|
|
28
28
|
jobID?: string;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type IClientJob = Omit<IJob, 'questions'> & {
|
|
31
31
|
questions?: IClientQuestion[];
|
|
32
32
|
};
|
|
@@ -5,8 +5,8 @@ export declare const enum SPEED_TEST_LEVEL {
|
|
|
5
5
|
MEDIUM = 1,
|
|
6
6
|
HIGH = 2
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
8
|
+
export type mediaDeviceType = 'video' | 'audio';
|
|
9
|
+
type ConstrainProps = {
|
|
10
10
|
video: {
|
|
11
11
|
width: {
|
|
12
12
|
min?: number;
|
|
@@ -5,7 +5,7 @@ import { CAMERA_STATES_MESSAGES, INTERNET_STATES_MESSAGES, MICROPHONE_STATES_MES
|
|
|
5
5
|
import { TAKE_TYPES } from './storageInterface';
|
|
6
6
|
import { IQuestion } from './jobInterface';
|
|
7
7
|
import { IVideoError } from '../utils/errors.utils';
|
|
8
|
-
|
|
8
|
+
type IUploaderRef = {
|
|
9
9
|
[uploaderRef: string]: ActorRef<DoneInvokeEvent<any>>;
|
|
10
10
|
};
|
|
11
11
|
export declare const VIDEO_ERROR_MESSAGES: {
|
|
@@ -13,10 +13,10 @@ export declare const VIDEO_ERROR_MESSAGES: {
|
|
|
13
13
|
REDIRECT: "REDIRECT";
|
|
14
14
|
NO_ERROR: "";
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
16
|
+
export type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
17
|
+
export type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
18
|
+
export type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
19
|
+
export type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
20
20
|
export declare const CAMERA_STATES: {
|
|
21
21
|
[K in ICameraStateKey]: K;
|
|
22
22
|
};
|
|
@@ -27,7 +27,7 @@ export declare function getSessionIdFromCache(): string | undefined | null;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function deleteSession(): void;
|
|
29
29
|
/** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
|
|
30
|
-
|
|
30
|
+
type KeysMatching<T, V> = {
|
|
31
31
|
[K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
|
|
32
32
|
}[keyof T];
|
|
33
33
|
/**
|
|
@@ -4,7 +4,7 @@ export declare const isSupportedIosDevice: boolean;
|
|
|
4
4
|
export declare const isSupportedDevice: boolean;
|
|
5
5
|
declare const PLATFORMS_OPTIONS: readonly ["ANDROID", "IOS", "MACBOOK", "WINDOWS"];
|
|
6
6
|
declare const BROWSERS_OPTIONS: readonly ["CHROME", "SAFARI", "FIREFOX", "SAMSUNG"];
|
|
7
|
-
|
|
7
|
+
type DEVICE_TYPE = {
|
|
8
8
|
PLATFORM: typeof PLATFORMS_OPTIONS[number];
|
|
9
9
|
BROWSER: typeof BROWSERS_OPTIONS[number];
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IVideoCorruptedMessagesKey } from '../interfaces/widgetInterface';
|
|
3
3
|
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
5
|
+
export type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
6
6
|
interface IProps extends Partial<IDeviceSelectorList> {
|
|
7
7
|
errorType: MODAL_ERROR_KEY;
|
|
8
8
|
onDisplayPermissionSteps?: () => void;
|