@frankieone/one-sdk 1.7.14-rc.5 → 1.7.14-rc.7

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
- af47490785c4ddefdbe83b73959a8bcb7124b97e
1
+ 0ff87853ed9e6a3ebd841eb7be35cb30f3ab04b0
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEO,uDAsFC"}
1
+ {"version":3,"file":"templateIdv.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdv.js"],"names":[],"mappings":"AAEO,uDAyFC"}
@@ -23,9 +23,7 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
23
23
 
24
24
  // Initialize OneSDK with configuration
25
25
  const oneSdk = await OneSdk({
26
- session: {
27
- token: sessionToken,
28
- },
26
+ session: sessionToken,
29
27
  mode: 'production',
30
28
  recipe: {
31
29
  form: {
@@ -38,6 +36,11 @@ export const templateIdv = (getTokenImpl) => html `<!-- Generated by OneSDK CLI
38
36
  },
39
37
  });
40
38
 
39
+ const oneSdkIndividual = oneSdk.individual();
40
+ oneSdkIndividual.addConsent("general");
41
+ oneSdkIndividual.addConsent("docs");
42
+ oneSdkIndividual.addConsent("creditheader");
43
+ await oneSdkIndividual.submit();
41
44
  // Create an IDV (Identity Verification) flow instance
42
45
  const idv = oneSdk.flow('idv');
43
46
 
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsEV,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,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgB3C,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyEV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,6DA6HC"}
1
+ {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,6DAiIC"}
@@ -23,9 +23,7 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
23
23
 
24
24
  // Initialize OneSDK with configuration
25
25
  const oneSdk = await OneSdk({
26
- session: {
27
- token: sessionToken,
28
- },
26
+ session: sessionToken,
29
27
  mode: 'production',
30
28
  recipe: {
31
29
  form: {
@@ -38,6 +36,12 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
38
36
  },
39
37
  });
40
38
 
39
+ const oneSdkIndividual = oneSdk.individual();
40
+ oneSdkIndividual.addConsent("general");
41
+ oneSdkIndividual.addConsent("docs");
42
+ oneSdkIndividual.addConsent("creditheader");
43
+ await oneSdkIndividual.submit();
44
+
41
45
  // Create an IDV flow instance for identity verification
42
46
  const idv = oneSdk.flow('idv');
43
47
 
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6GV,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,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiHV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"templateManualKyc.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAEO,6DAsNC"}
1
+ {"version":3,"file":"templateManualKyc.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateManualKyc.js"],"names":[],"mappings":"AAEO,6DAoNC"}
@@ -29,9 +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: {
33
- token: sessionToken,
34
- },
32
+ session: tokenSession,
35
33
  mode: 'production',
36
34
  recipe: {
37
35
  form: {
@@ -45,7 +43,7 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
45
43
  });
46
44
 
47
45
  // Enable debug logging of all OneSDK events
48
- oneSdkInstance.on('*', console.log);
46
+ oneSdk.on('*', console.log);
49
47
 
50
48
  // Get the container where OneSDK UI will be mounted
51
49
  const appContainer = document.querySelector('#idv-el');
@@ -54,35 +52,35 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
54
52
  // Each component is configured with specific options for its purpose
55
53
 
56
54
  // Welcome screen - Initial landing page
57
- const welcome = oneSdkInstance.component('form', {
55
+ const welcome = oneSdk.component('form', {
58
56
  name: 'WELCOME',
59
57
  mode: 'individual',
60
58
  type: 'manual',
61
59
  });
62
60
 
63
61
  // Consent screen - Get user permission
64
- const consent = oneSdkInstance.component('form', {
62
+ const consent = oneSdk.component('form', {
65
63
  name: 'CONSENT',
66
64
  mode: 'individual',
67
65
  type: 'manual',
68
66
  });
69
67
 
70
68
  // Personal details form
71
- const personal = oneSdkInstance.component('form', {
69
+ const personal = oneSdk.component('form', {
72
70
  name: 'PERSONAL',
73
71
  mode: 'individual',
74
72
  type: 'manual',
75
73
  });
76
74
 
77
75
  // Document upload screen
78
- const documents = oneSdkInstance.component('form', {
76
+ const documents = oneSdk.component('form', {
79
77
  name: 'DOCUMENT',
80
78
  mode: 'individual',
81
79
  type: 'manual',
82
80
  });
83
81
 
84
82
  // Review screen - Final verification step
85
- const review = oneSdkInstance.component('form', {
83
+ const review = oneSdk.component('form', {
86
84
  name: 'REVIEW',
87
85
  mode: 'individual',
88
86
  type: 'manual',
@@ -91,7 +89,7 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
91
89
  });
92
90
 
93
91
  // Various result screens based on verification outcome
94
- const success = oneSdkInstance.component('form', {
92
+ const success = oneSdk.component('form', {
95
93
  name: 'RESULT',
96
94
  mode: 'individual',
97
95
  state: 'SUCCESS',
@@ -101,7 +99,7 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
101
99
  },
102
100
  });
103
101
 
104
- const failed = oneSdkInstance.component('form', {
102
+ const failed = oneSdk.component('form', {
105
103
  name: 'RESULT',
106
104
  mode: 'individual',
107
105
  state: 'FAIL',
@@ -111,14 +109,14 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
111
109
  },
112
110
  });
113
111
 
114
- const partial = oneSdkInstance.component('form', {
112
+ const partial = oneSdk.component('form', {
115
113
  name: 'RESULT',
116
114
  mode: 'individual',
117
115
  state: 'PARTIAL',
118
116
  type: 'manual',
119
117
  });
120
118
 
121
- const pending = oneSdkInstance.component('form', {
119
+ const pending = oneSdk.component('form', {
122
120
  name: 'RESULT',
123
121
  mode: 'individual',
124
122
  state: 'PENDING',
@@ -128,7 +126,7 @@ Welcome -> Consent -> Personal Details -> Document Upload -> Review -> Result
128
126
  },
129
127
  });
130
128
 
131
- const retry = oneSdkInstance.component('form', {
129
+ const retry = oneSdk.component('form', {
132
130
  name: 'RETRY',
133
131
  mode: 'individual',
134
132
  type: 'manual',
@@ -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,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;MAmBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmMV,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,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;MAmBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiMV,CAAC"}
@@ -1 +1 @@
1
- { "version": "1.7.14-rc.5" }
1
+ { "version": "1.7.14-rc.7" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frankieone/one-sdk",
3
- "version": "1.7.14-rc.5",
3
+ "version": "1.7.14-rc.7",
4
4
  "cliVersion": "0.0.1",
5
5
  "description": "FrankieOne OneSDK",
6
6
  "keywords": [],