zklib-ts 1.0.5 → 1.0.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.
package/README.md CHANGED
@@ -62,6 +62,24 @@ enrollUser: receives a user `user_id` and finger ID `fid` where `0 <= fid <= 9`
62
62
  ```js
63
63
  await zkInstance.enrollUser(50,5)
64
64
  ```
65
+
66
+ Get a user single finger template
67
+ ```js
68
+ const data = await zkInstance.getUserTemplate(
69
+ "144", // user id/pin
70
+ 1 // finger index
71
+ )
72
+ ```
73
+
74
+ Upload a user single finger template
75
+ ```js
76
+ const uploaded = await zkInstance.uploadFingerTemplate(
77
+ "144", // user id/pin
78
+ "this_is_a_very_long_string", // finger template in Base64 string
79
+ 1, // finger id/index
80
+ 1 // finger flag
81
+ )
82
+ ```
65
83
  delete template. receives user id `uid` and finger id where `0 <= fid <= 9`
66
84
  ```js
67
85
  await zkInstance.deleteTemplate(50,5)