@frankieone/one-sdk 1.7.14-rc.10 → 1.7.14-rc.12
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/cli/darwin-amd64/onesdk-cli +0 -0
- package/dist/cli/darwin-arm64/onesdk-cli +0 -0
- package/dist/cli/linux-amd64/onesdk-cli +0 -0
- package/dist/cli/linux-arm64/onesdk-cli +0 -0
- package/dist/cli/windows-amd64/onesdk-cli.exe +0 -0
- package/dist/commit.txt +1 -1
- package/dist/esm/modules/cli/template/templateIdv.d.ts.map +1 -1
- package/dist/esm/modules/cli/template/templateIdv.js +1 -12
- package/dist/esm/modules/cli/template/templateIdv.js.map +1 -1
- package/dist/esm/modules/cli/template/templateIdvReview.d.ts.map +1 -1
- package/dist/esm/modules/cli/template/templateIdvReview.js +2 -37
- package/dist/esm/modules/cli/template/templateIdvReview.js.map +1 -1
- package/dist/esm/modules/meta.json +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/commit.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
507cbd8bd354656a8496e16a1c2c7741d14b2f57
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEO,
|
|
1
|
+
{"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEO,uDA0GC"}
|
|
@@ -60,18 +60,6 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
|
|
|
60
60
|
type: "manual",
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
review.on('form:review:ready', async () => {
|
|
64
|
-
try {
|
|
65
|
-
// Submit the review form and run verification
|
|
66
|
-
let res = oneSdkIndividual.submit({ verify: true });
|
|
67
|
-
console.log('submit and run verification result: ', res);
|
|
68
|
-
successScreen.mount('#idv-el');
|
|
69
|
-
} catch (error) {
|
|
70
|
-
console.error(error);
|
|
71
|
-
failedScreen.mount('#idv-el');
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
63
|
// Mount the IDV flow to the container element
|
|
76
64
|
idv.mount('#idv-el');
|
|
77
65
|
|
|
@@ -84,6 +72,7 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
|
|
|
84
72
|
idv.on('results', async ({ checkStatus, document, entityId }) => {
|
|
85
73
|
if (checkStatus) {
|
|
86
74
|
console.log('results succesful');
|
|
75
|
+
successScreen.mount("#idv-el");
|
|
87
76
|
} else {
|
|
88
77
|
console.log('no data returned');
|
|
89
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateIdv.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgB3C,YAAY
|
|
1
|
+
{"version":3,"file":"templateIdv.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgB3C,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0FV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,
|
|
1
|
+
{"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,6DA0HC"}
|
|
@@ -45,28 +45,12 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
|
|
|
45
45
|
// Create an IDV flow instance for identity verification
|
|
46
46
|
const idv = oneSdk.flow('idv');
|
|
47
47
|
|
|
48
|
-
// Create loading screens to show during different stages
|
|
49
|
-
const loading1 = oneSdk.component('form', {
|
|
50
|
-
name: 'LOADING',
|
|
51
|
-
title: { label: 'Loading...' },
|
|
52
|
-
descriptions: [{ label: '' }],
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const loading2 = oneSdk.component('form', {
|
|
56
|
-
name: 'LOADING',
|
|
57
|
-
title: { label: 'Processing results...' },
|
|
58
|
-
descriptions: [
|
|
59
|
-
{
|
|
60
|
-
label:
|
|
61
|
-
"Hold tight, this can take up to 30 seconds. Please do not refresh this page or click the 'back' button on your browser.",
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
});
|
|
65
|
-
|
|
66
48
|
// Create review component for OCR (Optical Character Recognition) review
|
|
67
49
|
const review = oneSdk.component('form', {
|
|
68
50
|
name: 'REVIEW',
|
|
69
51
|
type: 'ocr',
|
|
52
|
+
mode: 'individual',
|
|
53
|
+
verify: true
|
|
70
54
|
});
|
|
71
55
|
|
|
72
56
|
const successScreen = oneSdk.component('form', {
|
|
@@ -100,28 +84,10 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
|
|
|
100
84
|
// Mount the IDV flow to the container element
|
|
101
85
|
idv.mount('#idv-el');
|
|
102
86
|
|
|
103
|
-
// Handle loading states
|
|
104
|
-
let before = true;
|
|
105
|
-
idv.on('loading', (display) => {
|
|
106
|
-
if (display) {
|
|
107
|
-
if (before) {
|
|
108
|
-
loading1.mount('#loading1');
|
|
109
|
-
}
|
|
110
|
-
} else {
|
|
111
|
-
if (before) {
|
|
112
|
-
loading1.unmount();
|
|
113
|
-
}
|
|
114
|
-
before = false;
|
|
115
|
-
}
|
|
116
|
-
console.log(before);
|
|
117
|
-
console.log(display);
|
|
118
|
-
});
|
|
119
|
-
|
|
120
87
|
// Handle verification results
|
|
121
88
|
idv.on('results', async ({ checkStatus, document, entityId }) => {
|
|
122
89
|
if (checkStatus) {
|
|
123
90
|
console.log('results succesful');
|
|
124
|
-
loading2.unmount();
|
|
125
91
|
review.mount('#idv-el');
|
|
126
92
|
} else {
|
|
127
93
|
console.log('no data returned');
|
|
@@ -138,7 +104,6 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
|
|
|
138
104
|
idv.on('detection_complete', (message) => {
|
|
139
105
|
console.log('capture finished');
|
|
140
106
|
console.log(message);
|
|
141
|
-
loading2.mount('#loading2');
|
|
142
107
|
});
|
|
143
108
|
|
|
144
109
|
// Log all events for debugging
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateIdvReview.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgBjD,YAAY
|
|
1
|
+
{"version":3,"file":"templateIdvReview.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0GV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.7.14-rc.
|
|
1
|
+
{ "version": "1.7.14-rc.12" }
|