@frankieone/one-sdk 1.7.14-rc.7 → 1.7.14-rc.9
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 +32 -4
- 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 +32 -4
- package/dist/esm/modules/cli/template/templateIdvReview.js.map +1 -1
- package/dist/esm/modules/cli/template/templateManualKyc.js +5 -5
- 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
|
+
d7cd87dc8aab724ba718184125479e55c96bb3e3
|
|
@@ -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,uDAqHC"}
|
|
@@ -44,6 +44,34 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
|
|
|
44
44
|
// Create an IDV (Identity Verification) flow instance
|
|
45
45
|
const idv = oneSdk.flow('idv');
|
|
46
46
|
|
|
47
|
+
const successScreen = oneSdk.component('form', {
|
|
48
|
+
name: 'RESULT',
|
|
49
|
+
mode: 'individual',
|
|
50
|
+
type: 'manual',
|
|
51
|
+
state: 'SUCCESS',
|
|
52
|
+
title: { label: "Thanks, you're all done" },
|
|
53
|
+
cta: null,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const failedScreen = oneSdkInstance.component("form", {
|
|
57
|
+
name: "RESULT",
|
|
58
|
+
mode: "individual",
|
|
59
|
+
state: "FAIL",
|
|
60
|
+
type: "manual",
|
|
61
|
+
});
|
|
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
|
+
|
|
47
75
|
// Mount the IDV flow to the container element
|
|
48
76
|
idv.mount('#idv-el');
|
|
49
77
|
|
|
@@ -83,10 +111,10 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
|
|
|
83
111
|
|
|
84
112
|
<body style="background-color: white" onload="startOneSdk()">
|
|
85
113
|
<!-- Container element where OneSDK will mount its UI components -->
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
114
|
+
<div
|
|
115
|
+
id="idv-el"
|
|
116
|
+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
|
|
117
|
+
></div>
|
|
90
118
|
</body>
|
|
91
119
|
</html>`;
|
|
92
120
|
//# sourceMappingURL=templateIdv.js.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqGV,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,6DA6JC"}
|
|
@@ -69,6 +69,34 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
|
|
|
69
69
|
type: 'ocr',
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
+
const successScreen = oneSdk.component('form', {
|
|
73
|
+
name: 'RESULT',
|
|
74
|
+
mode: 'individual',
|
|
75
|
+
type: 'manual',
|
|
76
|
+
state: 'SUCCESS',
|
|
77
|
+
title: { label: "Thanks, you're all done" },
|
|
78
|
+
cta: null,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const failedScreen = oneSdkInstance.component("form", {
|
|
82
|
+
name: "RESULT",
|
|
83
|
+
mode: "individual",
|
|
84
|
+
state: "FAIL",
|
|
85
|
+
type: "manual",
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
review.on('form:review:ready', async () => {
|
|
89
|
+
try {
|
|
90
|
+
// Submit the review form and run verification
|
|
91
|
+
let res = oneSdkIndividual.submit({ verify: true });
|
|
92
|
+
console.log('submit and run verification result: ', res);
|
|
93
|
+
successScreen.mount('#idv-el');
|
|
94
|
+
} catch (error) {
|
|
95
|
+
console.error(error);
|
|
96
|
+
failedScreen.mount('#idv-el');
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
72
100
|
// Mount the IDV flow to the container element
|
|
73
101
|
idv.mount('#idv-el');
|
|
74
102
|
|
|
@@ -123,10 +151,10 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
|
|
|
123
151
|
|
|
124
152
|
<body style="background-color: white" onload="startOneSdk()">
|
|
125
153
|
<!-- Container element where OneSDK will mount its UI components -->
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
154
|
+
<div
|
|
155
|
+
id="idv-el"
|
|
156
|
+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
|
|
157
|
+
></div>
|
|
130
158
|
</body>
|
|
131
159
|
</html>`;
|
|
132
160
|
//# sourceMappingURL=templateIdvReview.js.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6IV,CAAC"}
|
|
@@ -29,7 +29,7 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
|
|
|
29
29
|
|
|
30
30
|
// Initialize OneSDK with basic configuration
|
|
31
31
|
const oneSdk = await OneSdk({
|
|
32
|
-
session:
|
|
32
|
+
session: sessionToken,
|
|
33
33
|
mode: 'production',
|
|
34
34
|
recipe: {
|
|
35
35
|
form: {
|
|
@@ -206,10 +206,10 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
|
|
|
206
206
|
|
|
207
207
|
<body style="background-color: white" onload="startOneSdk()">
|
|
208
208
|
<!-- Container where OneSDK will render its UI -->
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
<div
|
|
210
|
+
id="idv-el"
|
|
211
|
+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
|
|
212
|
+
></div>
|
|
213
213
|
</body>
|
|
214
214
|
</html>`;
|
|
215
215
|
//# sourceMappingURL=templateManualKyc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.7.14-rc.
|
|
1
|
+
{ "version": "1.7.14-rc.9" }
|