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 +18 -0
- package/dist/asd.csv +1142 -0
- package/dist/helper/command.d.ts +183 -85
- package/dist/helper/terminal.d.ts +541 -0
- package/dist/helper/utils.d.ts +42 -5
- package/dist/index.cjs.js +173 -2629
- package/dist/index.d.ts +52 -10
- package/dist/index.es.js +173 -2610
- package/dist/models/Attendance.d.ts +10 -2
- package/dist/models/Finger.d.ts +2 -1
- package/dist/services/options.service.d.ts +49 -0
- package/dist/services/transaction.service.d.ts +9 -0
- package/dist/services/user.service.d.ts +33 -0
- package/dist/ztcp.d.ts +37 -67
- package/dist/zudp.d.ts +3 -3
- package/package.json +70 -69
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)
|