sonic-widget 2.4.3 → 2.4.5

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/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
  Use this script tag to get access to the widget:
17
17
 
18
18
  ```html
19
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.3/dist/index.min.js"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.5/dist/index.min.js"></script>
20
20
  ```
21
21
 
22
22
  or
@@ -43,7 +43,7 @@ and adding path in `angular.json`
43
43
  2. Use this script tag to get access to the widget at initial html page:
44
44
 
45
45
  ```html
46
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.3/dist/index.min.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.5/dist/index.min.js"></script>
47
47
  ```
48
48
 
49
49
  or
@@ -96,6 +96,8 @@ ngOnInit(): void {
96
96
  branchId: string, //used to identify the bank branch
97
97
  sendLogsEmail: boolean, //used to send logs through email
98
98
  blinkThreshold: number, // used for blink threshold
99
+ objectPersonThreshold: number, // used for object Person score threshold
100
+ objectPhoneThreshold: number, // used for object Phone score threshold
99
101
  onMessage: function (data) {}, // callback function, when api response message or error or any other actions
100
102
  };
101
103
 
@@ -230,7 +232,7 @@ it can be added in `angular.json` by installing the npm package
230
232
  4. Add a Script tag to the head tag or body tag. And use the latest version.
231
233
 
232
234
  ```html
233
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.3/dist/index.min.js"></script>
235
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.4.5/dist/index.min.js"></script>
234
236
  ```
235
237
 
236
238
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -255,7 +257,9 @@ it can be added in `angular.json` by installing the npm package
255
257
  isMalay: boolean, //used to change the default language english to malay
256
258
  branchId: string, // branch id to identify the branch of the bank
257
259
  sendLogsEmail: boolean, //used to send logs through email
258
- blinkThreshold: number, // threshold used to calculate the user blinked or not with range limit 0-1(default value is 0.35)
260
+ blinkThreshold: number, // threshold used to calculate the user blinked or not, with range limit 0-1(default value is 0.35)
261
+ objectPersonThreshold: number, // used for object Person score threshold with range limit 0-1(default value is 0.35)
262
+ objectPhoneThreshold: number, // used for object Phone score threshold with range limit 0-1(default value is 0.35)
259
263
  onMessage: function (data) {}, // callback function, when api response message or error or any other actions
260
264
  };
261
265
  // get the element used in the action button
@@ -303,4 +307,6 @@ Check with **`data.code`**_
303
307
  - _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._
304
308
  - _**`sendLogsEmail`** is used to pass a boolean value. It is used to send logs to client email address._
305
309
  - _**`blinkThreshold`** is used to pass a numerical value. It is used to check the user blinks (range 0-1 and default 0.35)._
310
+ - _**`objectPersonThreshold`** is used to pass a numerical value. It is used to check the image person as object found with required score as threshold (range 0-1 and default 0.95)._
311
+ - _**`objectPhoneThreshold`** is used to pass a numerical value. It is used to check the image phone/laptop as object found with required score as threshold (range 0-1 and default 0.5)._
306
312
  - _**`onMessage`** is a callback function. It is getting called when the API gives a message or at any configuration error. Return data is an object with its API endpoint and result._