@ekyc_qoobiss/qbs-ect-cmp 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{agreement-check_16.cjs.entry.js → agreement-check_17.cjs.entry.js} +3332 -228
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/flow/id-double-side/id-double-side.js +7 -3
- package/dist/collection/components/flow/id-single-side/id-single-side.js +7 -3
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +123 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.js +7 -3
- package/dist/collection/components/identification-component/identification-component.js +63 -12
- package/dist/collection/helpers/ApiCall.js +30 -3
- package/dist/collection/helpers/Stream.js +5 -3
- package/dist/collection/helpers/store.js +1 -0
- package/dist/collection/helpers/textValues.js +9 -0
- package/dist/collection/models/ILinkSend.js +1 -0
- package/dist/collection/models/ILogResult.js +1 -0
- package/dist/collection/models/IOrderStatus.js +1 -0
- package/dist/collection/models/OrderStatuses.js +7 -0
- package/dist/esm/{agreement-check_16.entry.js → agreement-check_17.entry.js} +3332 -229
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-9d630ead.entry.js → p-be0b3da9.entry.js} +24 -24
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +22 -0
- package/dist/types/components/identification-component/identification-component.d.ts +3 -1
- package/dist/types/components.d.ts +20 -0
- package/dist/types/helpers/ApiCall.d.ts +6 -1
- package/dist/types/helpers/Stream.d.ts +12 -0
- package/dist/types/helpers/store.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +9 -0
- package/dist/types/models/IAddRequest.d.ts +1 -0
- package/dist/types/models/ILinkSend.d.ts +3 -0
- package/dist/types/models/ILogResult.d.ts +3 -0
- package/dist/types/models/IOrderStatus.d.ts +4 -0
- package/dist/types/models/OrderStatuses.d.ts +6 -0
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-4c8e922b",[[1,"loader-dots"]]],["p-
|
|
1
|
+
import{p as e,b as i}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-4c8e922b",[[1,"loader-dots"]]],["p-be0b3da9",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],idSide:[32],errorMessage:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32],selfieFlow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"end-redirect"],[0,"error-end",{message:[1]}],[0,"landing-validation",{device:[16],warningText:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32]}],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare class MobileRedirect {
|
|
3
|
+
private infoTextTop;
|
|
4
|
+
private infoTextBottom;
|
|
5
|
+
private contact;
|
|
6
|
+
private invalidValue;
|
|
7
|
+
private waitingMobile;
|
|
8
|
+
private orderStatus;
|
|
9
|
+
private redirectLink;
|
|
10
|
+
private qrCode;
|
|
11
|
+
private apiCall;
|
|
12
|
+
apiErrorEvent: EventEmitter<any>;
|
|
13
|
+
constructor();
|
|
14
|
+
componentWillLoad(): Promise<void>;
|
|
15
|
+
componentWillRender(): void;
|
|
16
|
+
componentDidLoad(): Promise<void>;
|
|
17
|
+
delay: (ms: any) => Promise<unknown>;
|
|
18
|
+
checkStatus(): Promise<void>;
|
|
19
|
+
buttonClick(): Promise<void>;
|
|
20
|
+
handleChangeContact(ev: any): void;
|
|
21
|
+
render(): any;
|
|
22
|
+
}
|
|
@@ -3,6 +3,7 @@ export declare class IdentificationComponent {
|
|
|
3
3
|
order_id: string;
|
|
4
4
|
api_url: string;
|
|
5
5
|
env: string;
|
|
6
|
+
redirect_id: string;
|
|
6
7
|
private idSide;
|
|
7
8
|
private errorMessage;
|
|
8
9
|
private device;
|
|
@@ -11,8 +12,9 @@ export declare class IdentificationComponent {
|
|
|
11
12
|
onOrderIdChange(newValue: string, _oldValue: string): Promise<void>;
|
|
12
13
|
onApiUrlChange(newValue: string, _oldValue: string): void;
|
|
13
14
|
onEnvChange(newValue: string, _oldValue: string): void;
|
|
15
|
+
onRedirectIdChange(newValue: string, _oldValue: string): Promise<void>;
|
|
14
16
|
agreementAcceptanceEmitted(data: any): void;
|
|
15
|
-
apiErrorEmitter(data: any): void
|
|
17
|
+
apiErrorEmitter(data: any): Promise<void>;
|
|
16
18
|
constructor();
|
|
17
19
|
componentWillLoad(): Promise<void>;
|
|
18
20
|
componentWillRender(): void;
|
|
@@ -45,6 +45,7 @@ export namespace Components {
|
|
|
45
45
|
"api_url": string;
|
|
46
46
|
"env": string;
|
|
47
47
|
"order_id": string;
|
|
48
|
+
"redirect_id": string;
|
|
48
49
|
"token": string;
|
|
49
50
|
}
|
|
50
51
|
interface LandingValidation {
|
|
@@ -52,6 +53,8 @@ export namespace Components {
|
|
|
52
53
|
}
|
|
53
54
|
interface LoaderDots {
|
|
54
55
|
}
|
|
56
|
+
interface MobileRedirect {
|
|
57
|
+
}
|
|
55
58
|
interface SelfieCapture {
|
|
56
59
|
"device": Device;
|
|
57
60
|
}
|
|
@@ -93,6 +96,10 @@ export interface IdSingleSideCustomEvent<T> extends CustomEvent<T> {
|
|
|
93
96
|
detail: T;
|
|
94
97
|
target: HTMLIdSingleSideElement;
|
|
95
98
|
}
|
|
99
|
+
export interface MobileRedirectCustomEvent<T> extends CustomEvent<T> {
|
|
100
|
+
detail: T;
|
|
101
|
+
target: HTMLMobileRedirectElement;
|
|
102
|
+
}
|
|
96
103
|
export interface SelfieCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
97
104
|
detail: T;
|
|
98
105
|
target: HTMLSelfieCaptureElement;
|
|
@@ -190,6 +197,12 @@ declare global {
|
|
|
190
197
|
prototype: HTMLLoaderDotsElement;
|
|
191
198
|
new (): HTMLLoaderDotsElement;
|
|
192
199
|
};
|
|
200
|
+
interface HTMLMobileRedirectElement extends Components.MobileRedirect, HTMLStencilElement {
|
|
201
|
+
}
|
|
202
|
+
var HTMLMobileRedirectElement: {
|
|
203
|
+
prototype: HTMLMobileRedirectElement;
|
|
204
|
+
new (): HTMLMobileRedirectElement;
|
|
205
|
+
};
|
|
193
206
|
interface HTMLSelfieCaptureElement extends Components.SelfieCapture, HTMLStencilElement {
|
|
194
207
|
}
|
|
195
208
|
var HTMLSelfieCaptureElement: {
|
|
@@ -223,6 +236,7 @@ declare global {
|
|
|
223
236
|
"identification-component": HTMLIdentificationComponentElement;
|
|
224
237
|
"landing-validation": HTMLLandingValidationElement;
|
|
225
238
|
"loader-dots": HTMLLoaderDotsElement;
|
|
239
|
+
"mobile-redirect": HTMLMobileRedirectElement;
|
|
226
240
|
"selfie-capture": HTMLSelfieCaptureElement;
|
|
227
241
|
"sms-code-validation": HTMLSmsCodeValidationElement;
|
|
228
242
|
"user-liveness": HTMLUserLivenessElement;
|
|
@@ -284,6 +298,7 @@ declare namespace LocalJSX {
|
|
|
284
298
|
"api_url"?: string;
|
|
285
299
|
"env"?: string;
|
|
286
300
|
"order_id"?: string;
|
|
301
|
+
"redirect_id"?: string;
|
|
287
302
|
"token"?: string;
|
|
288
303
|
}
|
|
289
304
|
interface LandingValidation {
|
|
@@ -291,6 +306,9 @@ declare namespace LocalJSX {
|
|
|
291
306
|
}
|
|
292
307
|
interface LoaderDots {
|
|
293
308
|
}
|
|
309
|
+
interface MobileRedirect {
|
|
310
|
+
"onApiError"?: (event: MobileRedirectCustomEvent<any>) => void;
|
|
311
|
+
}
|
|
294
312
|
interface SelfieCapture {
|
|
295
313
|
"device"?: Device;
|
|
296
314
|
"onPhotoSelfieCapture"?: (event: SelfieCaptureCustomEvent<any>) => void;
|
|
@@ -317,6 +335,7 @@ declare namespace LocalJSX {
|
|
|
317
335
|
"identification-component": IdentificationComponent;
|
|
318
336
|
"landing-validation": LandingValidation;
|
|
319
337
|
"loader-dots": LoaderDots;
|
|
338
|
+
"mobile-redirect": MobileRedirect;
|
|
320
339
|
"selfie-capture": SelfieCapture;
|
|
321
340
|
"sms-code-validation": SmsCodeValidation;
|
|
322
341
|
"user-liveness": UserLiveness;
|
|
@@ -340,6 +359,7 @@ declare module "@stencil/core" {
|
|
|
340
359
|
"identification-component": LocalJSX.IdentificationComponent & JSXBase.HTMLAttributes<HTMLIdentificationComponentElement>;
|
|
341
360
|
"landing-validation": LocalJSX.LandingValidation & JSXBase.HTMLAttributes<HTMLLandingValidationElement>;
|
|
342
361
|
"loader-dots": LocalJSX.LoaderDots & JSXBase.HTMLAttributes<HTMLLoaderDotsElement>;
|
|
362
|
+
"mobile-redirect": LocalJSX.MobileRedirect & JSXBase.HTMLAttributes<HTMLMobileRedirectElement>;
|
|
343
363
|
"selfie-capture": LocalJSX.SelfieCapture & JSXBase.HTMLAttributes<HTMLSelfieCaptureElement>;
|
|
344
364
|
"sms-code-validation": LocalJSX.SmsCodeValidation & JSXBase.HTMLAttributes<HTMLSmsCodeValidationElement>;
|
|
345
365
|
"user-liveness": LocalJSX.UserLiveness & JSXBase.HTMLAttributes<HTMLUserLivenessElement>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Device } from '../models/IDevice';
|
|
2
|
+
import { OrderStatuses } from '../models/OrderStatuses';
|
|
1
3
|
export declare class ApiCall {
|
|
2
4
|
private urls;
|
|
3
5
|
constructor();
|
|
@@ -6,9 +8,12 @@ export declare class ApiCall {
|
|
|
6
8
|
private get;
|
|
7
9
|
SendOTPCode(requestId: string, phoneNumber: string): Promise<boolean | Error>;
|
|
8
10
|
CheckOTPCode(requestId: string, otpCode: string): Promise<boolean | Error>;
|
|
9
|
-
AddIdentificationRequest(
|
|
11
|
+
AddIdentificationRequest(deviceInfo: Device): Promise<any | Error>;
|
|
10
12
|
UploadFileForRequestB64(requestId: string, type: string, file: File): Promise<boolean>;
|
|
11
13
|
GetAgreement(agreementType: string): Promise<string>;
|
|
12
14
|
GenerateAgreement(agreementType: string): Promise<boolean>;
|
|
15
|
+
GetStatus(requestId: string): Promise<OrderStatuses>;
|
|
16
|
+
SendLink(link: string, phoneNumber: string): Promise<boolean>;
|
|
17
|
+
AddLog(error: any): Promise<boolean>;
|
|
13
18
|
toBase64: (file: File) => Promise<unknown>;
|
|
14
19
|
}
|
|
@@ -2,6 +2,18 @@ import { Device } from '../models/IDevice';
|
|
|
2
2
|
import { FacePose } from '../libs/FaceML5Detector/FacePose';
|
|
3
3
|
import { IDPose } from '../libs/IDML5Detector/IDPose';
|
|
4
4
|
export declare class Stream {
|
|
5
|
+
static mp4MimeType: {
|
|
6
|
+
type: string;
|
|
7
|
+
codec: string;
|
|
8
|
+
extension: string;
|
|
9
|
+
mime: string;
|
|
10
|
+
};
|
|
11
|
+
static webmMimeType: {
|
|
12
|
+
type: string;
|
|
13
|
+
codec: string;
|
|
14
|
+
extension: string;
|
|
15
|
+
mime: string;
|
|
16
|
+
};
|
|
5
17
|
static instance: Stream;
|
|
6
18
|
streamPaused: boolean;
|
|
7
19
|
private device;
|
|
@@ -90,5 +90,14 @@ export declare class ApiUrls {
|
|
|
90
90
|
readonly UploadCapture: string;
|
|
91
91
|
readonly GetAgreement: string;
|
|
92
92
|
readonly GenerateAgreement: string;
|
|
93
|
+
readonly SendLink: string;
|
|
94
|
+
readonly GetStatus: string;
|
|
95
|
+
readonly AddLog: string;
|
|
93
96
|
constructor();
|
|
94
97
|
}
|
|
98
|
+
export declare class MobileRedirectValues extends GlobalValues {
|
|
99
|
+
static readonly InfoTop: string;
|
|
100
|
+
static readonly InfoBottom: string;
|
|
101
|
+
static readonly Validation: string;
|
|
102
|
+
static readonly InfoWaiting: string;
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekyc_qoobiss/qbs-ect-cmp",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "Person Identification Component",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
"kalmanjs": "^1.1.0",
|
|
34
34
|
"ml5": "^0.12.2",
|
|
35
35
|
"piexifjs": "^1.0.6",
|
|
36
|
-
"
|
|
36
|
+
"qrcode": "^1.5.1",
|
|
37
|
+
"tracking": "^1.1.3",
|
|
38
|
+
"uuid": "^9.0.0"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
41
|
"@d0whc3r/stencil-inline-file": "^0.1.2",
|