@frankieone/one-sdk 1.7.14-rc.2 → 1.7.14-rc.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.
Binary file
Binary file
Binary file
Binary file
package/dist/commit.txt CHANGED
@@ -1 +1 @@
1
- 96e648d8d8f331e266c0e49dcb9a8ef27a72f2ea
1
+ ef2b97b9e8b4480c0f4133b451d81c7ffad22a65
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEA,iCA8DS"}
1
+ {"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEA,iCAuGW"}
@@ -1,65 +1,106 @@
1
1
  const html = String.raw;
2
- export const templateIdv = html `<html lang="en">
3
- <head>
4
- <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>oneSdk onboarding</title>
8
- <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
2
+ export const templateIdv = html `<!-- Generated by OneSDK CLI -->
3
+ <!-- More information: https://docs.frankieone.com/v1.14.1/docs/about-onesdk -->
9
4
 
10
- <script>
11
- async function startOneSdk() {
12
- const oneSdk = await OneSdk({
13
- session: {
14
- token: GENERATED_TOKEN,
15
- },
16
- mode: 'production',
17
- recipe: {
18
- form: {
19
- provider: {
20
- name: 'react',
5
+ <!doctype html>
6
+ <html lang="en">
7
+ <head>
8
+ <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
+ <title>OneSDK - IDV</title>
12
+
13
+ <!-- NOTE: You can change the version of OneSDK to the desired version here -->
14
+ <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
15
+
16
+ <script>
17
+ async function getToken() {
18
+ // WARNING: This is for testing purposes only
19
+ // use server-side code to request the token in production for security reasons
20
+
21
+ const customerId = '<CUSTOMER_ID_HERE>';
22
+ const customerChildId = '<CUSTOMER_CHILD_ID_HERE>';
23
+ const apiKey = '<API_KEY_HERE>';
24
+ const authKey = btoa(
25
+ customerId + ':' + customerChildId + ':' + apiKey,
26
+ );
27
+
28
+ const tokenResponse = await fetch(
29
+ BACKEND_URL[env] + '/auth/v2/machine-session',
30
+ {
31
+ method: 'POST',
32
+ headers: {
33
+ authorization: 'machine ' + authKey,
34
+ 'Content-Type': 'application/json',
35
+ },
36
+ body: JSON.stringify({
37
+ permissions: {
38
+ preset: 'one-sdk',
39
+ reference: '<CUSTOMER_REFERENCE_HERE>',
40
+ },
41
+ }),
42
+ },
43
+ );
44
+
45
+ return await tokenResponse.json();
46
+ }
47
+
48
+ async function startOneSdk() {
49
+ const sessionToken = await getToken();
50
+
51
+ const oneSdk = await OneSdk({
52
+ session: {
53
+ token: sessionToken,
54
+ },
55
+ mode: 'production',
56
+ recipe: {
57
+ form: {
58
+ provider: {
59
+ name: 'react',
60
+ // NOTE: This is for the autocomplete feature in the form
61
+ // googleApiKey: "<GOOGLE_API_KEY>",
62
+ },
21
63
  },
22
64
  },
23
- },
24
- });
65
+ });
25
66
 
26
- const idv = oneSdk.flow('idv');
67
+ const idv = oneSdk.flow('idv');
27
68
 
28
- idv.mount('#idv-el');
29
- idv.on('loading', () => {
30
- console.log('loading');
31
- });
69
+ idv.mount('#idv-el');
70
+ idv.on('loading', () => {
71
+ console.log('loading');
72
+ });
32
73
 
33
- idv.on('results', async ({ checkStatus, document, entityId }) => {
34
- if (checkStatus) {
35
- console.log('results succesful');
36
- } else {
37
- console.log('no data returned');
38
- }
39
- });
74
+ idv.on('results', async ({ checkStatus, document, entityId }) => {
75
+ if (checkStatus) {
76
+ console.log('results succesful');
77
+ } else {
78
+ console.log('no data returned');
79
+ }
80
+ });
40
81
 
41
- idv.on('error', ({ message, payload }) => {
42
- console.log('received error');
43
- console.log(message, payload);
44
- });
82
+ idv.on('error', ({ message, payload }) => {
83
+ console.log('received error');
84
+ console.log(message, payload);
85
+ });
45
86
 
46
- idv.on('detection_complete', (message) => {
47
- console.log('capture finished');
48
- console.log(message);
49
- });
87
+ idv.on('detection_complete', (message) => {
88
+ console.log('capture finished');
89
+ console.log(message);
90
+ });
50
91
 
51
- idv.on('*', (message) => {
52
- console.log(message);
53
- });
54
- }
55
- </script>
56
- </head>
92
+ idv.on('*', (message) => {
93
+ console.log(message);
94
+ });
95
+ }
96
+ </script>
97
+ </head>
57
98
 
58
- <body style="background-color: white" onload="startOneSdk()">
59
- <div
60
- id="idv-el"
61
- style="top: 0; left: 0; width: 100%; height: 100%; display: block"
62
- ></div>
63
- </body>
64
- </html>`;
99
+ <body style="background-color: white" onload="startOneSdk()">
100
+ <div
101
+ id="idv-el"
102
+ style="top: 0; left: 0; width: 100%; height: 100%; display: block"
103
+ ></div>
104
+ </body>
105
+ </html>`;
65
106
  //# 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,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8DvB,CAAC"}
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,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuGrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEA,uCAgGS"}
1
+ {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEA,uCA0IW"}
@@ -1,99 +1,141 @@
1
1
  const html = String.raw;
2
- export const templateIdvReview = html `<html lang="en">
3
- <head>
4
- <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>oneSdk onboarding</title>
8
- <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
2
+ export const templateIdvReview = html `<!-- Generated by OneSDK CLI -->
3
+ <!-- More information: https://docs.frankieone.com/v1.14.1/docs/about-onesdk -->
9
4
 
10
- <script>
11
- async function startOneSdk() {
12
- const oneSdk = await OneSdk({
13
- session: {
14
- token: GENERATED_TOKEN,
15
- },
16
- mode: 'production',
17
- recipe: {
18
- form: {
19
- provider: {
20
- name: 'react',
5
+ <!doctype html>
6
+ <html lang="en">
7
+ <head>
8
+ <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
+ <title>OneSDK - IDV+Review</title>
12
+
13
+ <!-- NOTE: You can change the version of OneSDK to the desired version here -->
14
+ <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
15
+
16
+ <script>
17
+ async function getToken() {
18
+ // WARNING: This is for testing purposes only
19
+ // use server-side code to request the token in production for security reasons
20
+
21
+ const customerId = '<CUSTOMER_ID_HERE>';
22
+ const customerChildId = '<CUSTOMER_CHILD_ID_HERE>';
23
+ const apiKey = '<API_KEY_HERE>';
24
+ const authKey = btoa(
25
+ customerId + ':' + customerChildId + ':' + apiKey,
26
+ );
27
+
28
+ const tokenResponse = await fetch(
29
+ BACKEND_URL[env] + '/auth/v2/machine-session',
30
+ {
31
+ method: 'POST',
32
+ headers: {
33
+ authorization: 'machine ' + authKey,
34
+ 'Content-Type': 'application/json',
21
35
  },
36
+ body: JSON.stringify({
37
+ permissions: {
38
+ preset: 'one-sdk',
39
+ // NOTE: Replace this with your customer reference
40
+ reference: '<CUSTOMER_REFERENCE_HERE>',
41
+ },
42
+ }),
22
43
  },
23
- },
24
- });
44
+ );
25
45
 
26
- const idv = oneSdk.flow('idv');
27
- const loading1 = oneSdk.component('form', {
28
- name: 'LOADING',
29
- title: { label: 'Loading...' },
30
- descriptions: [{ label: '' }],
31
- });
32
- const loading2 = oneSdk.component('form', {
33
- name: 'LOADING',
34
- title: { label: 'Processing results...' },
35
- descriptions: [
36
- {
37
- label:
38
- "Hold tight, this can take up to 30 seconds. Please do not refresh this page or click the 'back' button on your browser.",
46
+ return await tokenResponse.json();
47
+ }
48
+
49
+ async function startOneSdk() {
50
+ const sessionToken = await getToken();
51
+
52
+ const oneSdk = await OneSdk({
53
+ session: {
54
+ token: sessionToken,
55
+ },
56
+ mode: 'production',
57
+ recipe: {
58
+ form: {
59
+ provider: {
60
+ name: 'react',
61
+ // NOTE: This is for the autocomplete feature in the form
62
+ // googleApiKey: "<GOOGLE_API_KEY>",
63
+ },
64
+ },
39
65
  },
40
- ],
41
- });
42
- const review = oneSdk.component('form', {
43
- name: 'REVIEW',
44
- type: 'ocr',
45
- });
66
+ });
46
67
 
47
- idv.mount('#idv-el');
48
- let before = true;
49
- idv.on('loading', (display) => {
50
- if (display) {
51
- if (before) {
52
- loading1.mount('#loading1');
53
- }
54
- } else {
55
- if (before) {
56
- loading1.unmount();
68
+ const idv = oneSdk.flow('idv');
69
+ const loading1 = oneSdk.component('form', {
70
+ name: 'LOADING',
71
+ title: { label: 'Loading...' },
72
+ descriptions: [{ label: '' }],
73
+ });
74
+ const loading2 = oneSdk.component('form', {
75
+ name: 'LOADING',
76
+ title: { label: 'Processing results...' },
77
+ descriptions: [
78
+ {
79
+ label:
80
+ "Hold tight, this can take up to 30 seconds. Please do not refresh this page or click the 'back' button on your browser.",
81
+ },
82
+ ],
83
+ });
84
+ const review = oneSdk.component('form', {
85
+ name: 'REVIEW',
86
+ type: 'ocr',
87
+ });
88
+
89
+ idv.mount('#idv-el');
90
+ let before = true;
91
+ idv.on('loading', (display) => {
92
+ if (display) {
93
+ if (before) {
94
+ loading1.mount('#loading1');
95
+ }
96
+ } else {
97
+ if (before) {
98
+ loading1.unmount();
99
+ }
100
+ before = false;
57
101
  }
58
- before = false;
59
- }
60
- console.log(before);
61
- console.log(display);
62
- });
102
+ console.log(before);
103
+ console.log(display);
104
+ });
63
105
 
64
- idv.on('results', async ({ checkStatus, document, entityId }) => {
65
- if (checkStatus) {
66
- console.log('results succesful');
67
- loading2.unmount();
68
- review.mount('#idv-el');
69
- } else {
70
- console.log('no data returned');
71
- }
72
- });
106
+ idv.on('results', async ({ checkStatus, document, entityId }) => {
107
+ if (checkStatus) {
108
+ console.log('results succesful');
109
+ loading2.unmount();
110
+ review.mount('#idv-el');
111
+ } else {
112
+ console.log('no data returned');
113
+ }
114
+ });
73
115
 
74
- idv.on('error', ({ message, payload }) => {
75
- console.log('received error');
76
- console.log(message, payload);
77
- });
116
+ idv.on('error', ({ message, payload }) => {
117
+ console.log('received error');
118
+ console.log(message, payload);
119
+ });
78
120
 
79
- idv.on('detection_complete', (message) => {
80
- console.log('capture finished');
81
- console.log(message);
82
- loading2.mount('#loading2');
83
- });
121
+ idv.on('detection_complete', (message) => {
122
+ console.log('capture finished');
123
+ console.log(message);
124
+ loading2.mount('#loading2');
125
+ });
84
126
 
85
- idv.on('*', (message) => {
86
- console.log(message);
87
- });
88
- }
89
- </script>
90
- </head>
127
+ idv.on('*', (message) => {
128
+ console.log(message);
129
+ });
130
+ }
131
+ </script>
132
+ </head>
91
133
 
92
- <body style="background-color: white" onload="startOneSdk()">
93
- <div
94
- id="idv-el"
95
- style="top: 0; left: 0; width: 100%; height: 100%; display: block"
96
- ></div>
97
- </body>
98
- </html>`;
134
+ <body style="background-color: white" onload="startOneSdk()">
135
+ <div
136
+ id="idv-el"
137
+ style="top: 0; left: 0; width: 100%; height: 100%; display: block"
138
+ ></div>
139
+ </body>
140
+ </html>`;
99
141
  //# 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,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgG7B,CAAC"}
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,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0I3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"templateManualKyc.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAEA,uCA2KS"}
1
+ {"version":3,"file":"templateManualKyc.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAEA,uCAqNW"}
@@ -1,174 +1,216 @@
1
1
  const html = String.raw;
2
- export const templateManualKyc = html `<html lang="en">
3
- <head>
4
- <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>oneSdk onboarding</title>
8
- <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
9
-
10
- <script>
11
- async function startOneSdk() {
12
- const oneSdkInstance = await OneSdk({
13
- session: {
14
- token: GENERATED_TOKEN,
15
- },
16
- mode: 'production',
17
- recipe: {
18
- form: {
19
- provider: {
20
- name: 'react',
21
- googleApiKey: GOOGLE_API_KEY,
2
+ export const templateManualKyc = html `<!-- Generated by OneSDK CLI -->
3
+ <!-- More information: https://docs.frankieone.com/v1.14.1/docs/about-onesdk -->
4
+
5
+ <!doctype html>
6
+ <html lang="en">
7
+ <head>
8
+ <!-- UTF-8 encoding you page is important as some text in the smart UI might not come out as you expect -->
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
+ <title>OneSDK - Manual KYC</title>
12
+
13
+ <!-- NOTE: You can change the version of OneSDK to the desired version here -->
14
+ <script src="https://assets.frankiefinancial.io/one-sdk/v1/oneSdk.umd.js"></script>
15
+
16
+ <script>
17
+ async function getToken() {
18
+ // WARNING: This is for testing purposes only
19
+ // use server-side code to request the token in production for security reasons
20
+
21
+ const customerId = '<CUSTOMER_ID_HERE>';
22
+ const customerChildId = '<CUSTOMER_CHILD_ID_HERE>';
23
+ const apiKey = '<API_KEY_HERE>';
24
+ const authKey = btoa(
25
+ customerId + ':' + customerChildId + ':' + apiKey,
26
+ );
27
+
28
+ const tokenResponse = await fetch(
29
+ BACKEND_URL[env] + '/auth/v2/machine-session',
30
+ {
31
+ method: 'POST',
32
+ headers: {
33
+ authorization: 'machine ' + authKey,
34
+ 'Content-Type': 'application/json',
22
35
  },
36
+ body: JSON.stringify({
37
+ permissions: {
38
+ preset: 'one-sdk',
39
+ // NOTE: Replace this with your customer reference
40
+ reference: '<CUSTOMER_REFERENCE_HERE>',
41
+ },
42
+ }),
23
43
  },
24
- },
25
- });
26
- oneSdkInstance.on('*', console.log);
27
- const appContainer = document.querySelector('#idv-el');
28
-
29
- const welcome = oneSdkInstance.component('form', {
30
- name: 'WELCOME',
31
- mode: 'individual',
32
- type: 'manual',
33
- });
34
-
35
- const consent = oneSdkInstance.component('form', {
36
- name: 'CONSENT',
37
- mode: 'individual',
38
- type: 'manual',
39
- });
40
-
41
- const personal = oneSdkInstance.component('form', {
42
- name: 'PERSONAL',
43
- mode: 'individual',
44
- type: 'manual',
45
- });
46
-
47
- const documents = oneSdkInstance.component('form', {
48
- name: 'DOCUMENT',
49
- mode: 'individual',
50
- type: 'manual',
51
- });
52
-
53
- const review = oneSdkInstance.component('form', {
54
- name: 'REVIEW',
55
- mode: 'individual',
56
- type: 'manual',
57
- verify: true,
58
- customResult: true,
59
- });
60
-
61
- const success = oneSdkInstance.component('form', {
62
- name: 'RESULT',
63
- mode: 'individual',
64
- state: 'SUCCESS',
65
- type: 'manual',
66
- cta: {
67
- label: 'Continue',
68
- },
69
- });
70
-
71
- const failed = oneSdkInstance.component('form', {
72
- name: 'RESULT',
73
- mode: 'individual',
74
- state: 'FAIL',
75
- type: 'manual',
76
- cta: {
77
- label: 'Continue',
78
- },
79
- });
80
-
81
- const partial = oneSdkInstance.component('form', {
82
- name: 'RESULT',
83
- mode: 'individual',
84
- state: 'PARTIAL',
85
- type: 'manual',
86
- });
87
-
88
- const pending = oneSdkInstance.component('form', {
89
- name: 'RESULT',
90
- mode: 'individual',
91
- state: 'PENDING',
92
- type: 'manual',
93
- cta: {
94
- label: 'Continue',
95
- },
96
- });
97
-
98
- const retry = oneSdkInstance.component('form', {
99
- name: 'RETRY',
100
- mode: 'individual',
101
- type: 'manual',
102
- });
103
-
104
- welcome.on('form:welcome:ready', () => {
105
- consent.mount(appContainer);
106
- });
107
-
108
- consent.on('form:consent:ready', async () => {
109
- personal.mount(appContainer);
110
- });
111
-
112
- personal.on('form:personal:ready', async () => {
113
- documents.mount(appContainer);
114
- });
115
-
116
- documents.on('form:document:back', async () => {
117
- personal.mount(appContainer);
118
- });
119
-
120
- documents.on('form:document:ready', async () => {
121
- review.mount(appContainer);
122
- });
123
-
124
- review.on('form:review:success', async () => {
125
- success.mount(appContainer);
126
- });
127
-
128
- review.on('form:review:failed', async () => {
129
- failed.mount(appContainer);
130
- });
131
-
132
- review.on('form:review:pending', () => {
133
- pending.mount(appContainer);
134
- });
135
-
136
- let retryCount = 0;
137
- review.on('form:review:partial', async () => {
138
- if (retryCount < 2) {
139
- retryCount += 1;
140
- partial.mount(appContainer);
141
- } else {
44
+ );
45
+
46
+ return await tokenResponse.json();
47
+ }
48
+
49
+ async function startOneSdk() {
50
+ const sessionToken = await getToken();
51
+
52
+ const oneSdk = await OneSdk({
53
+ session: {
54
+ token: sessionToken,
55
+ },
56
+ mode: 'production',
57
+ recipe: {
58
+ form: {
59
+ provider: {
60
+ name: 'react',
61
+ // NOTE: This is for the autocomplete feature in the form
62
+ // googleApiKey: "<GOOGLE_API_KEY>",
63
+ },
64
+ },
65
+ },
66
+ });
67
+
68
+ oneSdkInstance.on('*', console.log);
69
+ const appContainer = document.querySelector('#idv-el');
70
+
71
+ const welcome = oneSdkInstance.component('form', {
72
+ name: 'WELCOME',
73
+ mode: 'individual',
74
+ type: 'manual',
75
+ });
76
+
77
+ const consent = oneSdkInstance.component('form', {
78
+ name: 'CONSENT',
79
+ mode: 'individual',
80
+ type: 'manual',
81
+ });
82
+
83
+ const personal = oneSdkInstance.component('form', {
84
+ name: 'PERSONAL',
85
+ mode: 'individual',
86
+ type: 'manual',
87
+ });
88
+
89
+ const documents = oneSdkInstance.component('form', {
90
+ name: 'DOCUMENT',
91
+ mode: 'individual',
92
+ type: 'manual',
93
+ });
94
+
95
+ const review = oneSdkInstance.component('form', {
96
+ name: 'REVIEW',
97
+ mode: 'individual',
98
+ type: 'manual',
99
+ verify: true,
100
+ customResult: true,
101
+ });
102
+
103
+ const success = oneSdkInstance.component('form', {
104
+ name: 'RESULT',
105
+ mode: 'individual',
106
+ state: 'SUCCESS',
107
+ type: 'manual',
108
+ cta: {
109
+ label: 'Continue',
110
+ },
111
+ });
112
+
113
+ const failed = oneSdkInstance.component('form', {
114
+ name: 'RESULT',
115
+ mode: 'individual',
116
+ state: 'FAIL',
117
+ type: 'manual',
118
+ cta: {
119
+ label: 'Continue',
120
+ },
121
+ });
122
+
123
+ const partial = oneSdkInstance.component('form', {
124
+ name: 'RESULT',
125
+ mode: 'individual',
126
+ state: 'PARTIAL',
127
+ type: 'manual',
128
+ });
129
+
130
+ const pending = oneSdkInstance.component('form', {
131
+ name: 'RESULT',
132
+ mode: 'individual',
133
+ state: 'PENDING',
134
+ type: 'manual',
135
+ cta: {
136
+ label: 'Continue',
137
+ },
138
+ });
139
+
140
+ const retry = oneSdkInstance.component('form', {
141
+ name: 'RETRY',
142
+ mode: 'individual',
143
+ type: 'manual',
144
+ });
145
+
146
+ welcome.on('form:welcome:ready', () => {
147
+ consent.mount(appContainer);
148
+ });
149
+
150
+ consent.on('form:consent:ready', async () => {
151
+ personal.mount(appContainer);
152
+ });
153
+
154
+ personal.on('form:personal:ready', async () => {
155
+ documents.mount(appContainer);
156
+ });
157
+
158
+ documents.on('form:document:back', async () => {
159
+ personal.mount(appContainer);
160
+ });
161
+
162
+ documents.on('form:document:ready', async () => {
163
+ review.mount(appContainer);
164
+ });
165
+
166
+ review.on('form:review:success', async () => {
167
+ success.mount(appContainer);
168
+ });
169
+
170
+ review.on('form:review:failed', async () => {
142
171
  failed.mount(appContainer);
143
- }
144
- });
145
-
146
- pending.on('form:result:pending', async () => {
147
- console.log('form result pending');
148
- });
149
-
150
- success.on('form:result:success', async () => {
151
- console.log('form result success');
152
- });
153
-
154
- failed.on('form:result:failed', async () => {
155
- console.log('form result failed');
156
- });
157
-
158
- partial.on('form:result:partial', async () => {
159
- retry.mount(appContainer);
160
- });
161
-
162
- welcome.mount(appContainer);
163
- }
164
- </script>
165
- </head>
166
-
167
- <body style="background-color: white" onload="startOneSdk()">
168
- <div
169
- id="idv-el"
170
- style="top: 0; left: 0; width: 100%; height: 100%; display: block"
171
- ></div>
172
- </body>
173
- </html>`;
172
+ });
173
+
174
+ review.on('form:review:pending', () => {
175
+ pending.mount(appContainer);
176
+ });
177
+
178
+ let retryCount = 0;
179
+ review.on('form:review:partial', async () => {
180
+ if (retryCount < 2) {
181
+ retryCount += 1;
182
+ partial.mount(appContainer);
183
+ } else {
184
+ failed.mount(appContainer);
185
+ }
186
+ });
187
+
188
+ pending.on('form:result:pending', async () => {
189
+ console.log('form result pending');
190
+ });
191
+
192
+ success.on('form:result:success', async () => {
193
+ console.log('form result success');
194
+ });
195
+
196
+ failed.on('form:result:failed', async () => {
197
+ console.log('form result failed');
198
+ });
199
+
200
+ partial.on('form:result:partial', async () => {
201
+ retry.mount(appContainer);
202
+ });
203
+
204
+ welcome.mount(appContainer);
205
+ }
206
+ </script>
207
+ </head>
208
+
209
+ <body style="background-color: white" onload="startOneSdk()">
210
+ <div
211
+ id="idv-el"
212
+ style="top: 0; left: 0; width: 100%; height: 100%; display: block"
213
+ ></div>
214
+ </body>
215
+ </html>`;
174
216
  //# sourceMappingURL=templateManualKyc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templateManualKyc.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2K7B,CAAC"}
1
+ {"version":3,"file":"templateManualKyc.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqN3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/idv/vendors/Sumsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAMzD,OAAO,EAAa,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAoDhF,eAAO,MAAM,UAAU;;;;;;;;mBApDR,CAAC;;;;;;;;;;CA6Jf,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/idv/vendors/Sumsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAc,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMzD,OAAO,EAAa,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAkDhF,eAAO,MAAM,UAAU;;;;;;;;mBAlDR,CAAC;;;;;;;;;;CAsKf,CAAC"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { OneSDKError, mkEventHub } from '../../../common/index.js';
10
+ import { mkEventHub, OneSDKError } from '../../../common/index.js';
11
11
  import { defineWrapper } from '../../../common/modules/defineModule.js';
12
12
  import { useFormToReviewResults } from '../../../common/vendors/form/useForm.js';
13
13
  import { install } from '../../../common/vendors/sumsub/index.js';
@@ -15,14 +15,14 @@ import { feat } from '../../../features.config.js';
15
15
  import { IDVClient, IDVStatus } from '../../../frankie-client/clients/IDVClient.js';
16
16
  import { createSession } from '../../../ocr/vendors/common/createSession.js';
17
17
  import { checkStatusEventMapping } from '../common/checkStatusEventMapping.js';
18
- const initProcess = (_a) => __awaiter(void 0, [_a], void 0, function* ({ eventHub, privateEventHub, idvClient, vendorParameters, entityId, }) {
18
+ const initProcess = (_a) => __awaiter(void 0, [_a], void 0, function* ({ eventHub, idvClient, vendorParameters, entityId, }) {
19
19
  try {
20
20
  const results = yield idvClient.initProcess({
21
21
  isSynchronous: true,
22
22
  vendorParameters,
23
23
  });
24
24
  checkStatusEventMapping({
25
- eventHub: privateEventHub,
25
+ eventHub,
26
26
  results,
27
27
  entityId,
28
28
  });
@@ -42,7 +42,7 @@ const removeVendorSDK = (mountElement) => {
42
42
  }
43
43
  };
44
44
  export const initialise = defineWrapper('sumsub', (shared, options) => __awaiter(void 0, void 0, void 0, function* () {
45
- var _a, _b;
45
+ var _a, _b, _c;
46
46
  const { recipe, frankieClient } = shared;
47
47
  const { mountElement, eventHub } = options;
48
48
  const idvClient = new IDVClient(frankieClient);
@@ -53,9 +53,25 @@ export const initialise = defineWrapper('sumsub', (shared, options) => __awaiter
53
53
  const { entityId, token, vendorParameters } = idvSession;
54
54
  const containsReviewScreen = feat(`modules.idv.containsReviewScreen.sumsub`);
55
55
  const recipeProvideReviewScreen = (_b = (_a = recipe.idv) === null || _a === void 0 ? void 0 : _a.provideReviewScreen) !== null && _b !== void 0 ? _b : feat('recipeDefaults.idv.provideReviewScreen');
56
- const attachForm = !containsReviewScreen || recipeProvideReviewScreen;
56
+ const attachForm = (_c = (!containsReviewScreen && recipeProvideReviewScreen)) !== null && _c !== void 0 ? _c : false;
57
57
  const privateEventHub = mkEventHub();
58
- privateEventHub.on('results', useFormToReviewResults(Object.assign(Object.assign({}, shared), { mountElement, attachForm: attachForm })));
58
+ privateEventHub.on('results', (results) => {
59
+ const levelName = vendorParameters === null || vendorParameters === void 0 ? void 0 : vendorParameters.levelName;
60
+ if (levelName === 'basic-kyc-level') {
61
+ useFormToReviewResults({
62
+ oneSdkInstance: shared.oneSdkInstance,
63
+ localEventHub: eventHub,
64
+ mountElement,
65
+ attachForm: attachForm,
66
+ })(results);
67
+ }
68
+ if (levelName === 'POA_ONLY') {
69
+ eventHub.emit('loading', false, {
70
+ message: 'Completed process successfully',
71
+ });
72
+ eventHub.emit('results', results);
73
+ }
74
+ });
59
75
  privateEventHub.on(['input_required', 'processing', 'error'], () => eventHub.emit('loading', false, {
60
76
  message: 'Completed process unsuccessfully',
61
77
  }));
@@ -87,16 +103,13 @@ export const initialise = defineWrapper('sumsub', (shared, options) => __awaiter
87
103
  eventHub.emit('ready', { domElement: mountElement });
88
104
  break;
89
105
  case 'idCheck.onApplicantStatusChanged':
90
- if ((payload === null || payload === void 0 ? void 0 : payload.reviewStatus) === 'pending') {
106
+ if ((payload === null || payload === void 0 ? void 0 : payload.reviewStatus) === 'completed') {
91
107
  eventHub.emit('detection_complete');
92
- }
93
- else if ((payload === null || payload === void 0 ? void 0 : payload.reviewStatus) === 'completed') {
94
108
  eventHub.emit('loading', true, {
95
109
  message: 'Retrieving IDV results',
96
110
  });
97
111
  yield initProcess({
98
- eventHub,
99
- privateEventHub,
112
+ eventHub: privateEventHub,
100
113
  idvClient,
101
114
  vendorParameters,
102
115
  entityId,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/idv/vendors/Sumsub/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;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AC,SAAS,EAAE,IAAI,EAAE;wBAC7B,OAAO,EAAE,wBAAwB;qBAClC,CAAC,CAAC;oBAEH,MAAM,WAAW,CAAC;wBAChB,QAAQ,EAAE,eAAe;wBACzB,SAAS;wBACT,gBAAgB;wBAChB,QAAQ;qBACT,CAAC,CAAC;oBAEH,eAAe,CAAC,YAAY,CAAC,CAAC;gBAChC,CAAC;gBACD,MAAM;QACV,CAAC;IACH,CAAC,CAAA,CACF;SACA,KAAK,EAAE;SACP,MAAM,CAAC,YAAY,CAAC,CAAC;AAC1B,CAAC,CAAA,CACF,CAAC"}
@@ -1 +1 @@
1
- { "version": "1.7.14-rc.2" }
1
+ { "version": "1.7.14-rc.3" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frankieone/one-sdk",
3
- "version": "1.7.14-rc.2",
3
+ "version": "1.7.14-rc.3",
4
4
  "cliVersion": "0.0.1",
5
5
  "description": "FrankieOne OneSDK",
6
6
  "keywords": [],