zklib-ts 1.0.6 → 1.0.8
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/dist/helper/command.d.ts +11 -5
- package/dist/helper/terminal.d.ts +541 -0
- package/dist/helper/utils.d.ts +42 -5
- package/dist/index.cjs.js +1593 -873
- package/dist/index.d.ts +7 -6
- package/dist/index.es.js +1593 -873
- package/dist/models/Attendance.d.ts +3 -0
- package/dist/models/Finger.d.ts +2 -1
- package/dist/services/options.service.d.ts +49 -0
- package/dist/services/transaction.service.d.ts +1 -1
- package/dist/services/user.service.d.ts +4 -4
- package/dist/ztcp.cjs.js +802 -0
- package/dist/ztcp.d.ts +16 -37
- package/dist/ztcp.js +800 -0
- package/dist/zudp.cjs.js +531 -0
- package/dist/zudp.d.ts +2 -2
- package/dist/zudp.js +510 -0
- package/package.json +87 -69
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ZTCP } from
|
|
2
|
-
import { ZUDP } from
|
|
3
|
-
import { User } from
|
|
4
|
-
import { Finger } from
|
|
1
|
+
import { ZTCP } from "./ztcp";
|
|
2
|
+
import { ZUDP } from "./zudp";
|
|
3
|
+
import { User } from "./models/User";
|
|
4
|
+
import { Finger } from "./models/Finger";
|
|
5
5
|
import { Attendance } from "./models/Attendance";
|
|
6
6
|
import { RecordData16, UserData28, DeviceInfo, FreeSizes } from "./helper/utils";
|
|
7
7
|
export default class Zklib {
|
|
@@ -71,7 +71,7 @@ export default class Zklib {
|
|
|
71
71
|
* @param user_id {string} user id/pin
|
|
72
72
|
* @param fid {number} finger index
|
|
73
73
|
*/
|
|
74
|
-
getUserTemplate(user_id: string, fid: number): Promise<
|
|
74
|
+
getUserTemplate(user_id: string, fid: number): Promise<Finger>;
|
|
75
75
|
/**
|
|
76
76
|
* Upload a single fingerprint for a given user id
|
|
77
77
|
* @param user_id {string} user id/pin for customer
|
|
@@ -98,7 +98,7 @@ export default class Zklib {
|
|
|
98
98
|
* @param user_id {string} user id/pin for customer
|
|
99
99
|
* @param temp_id {number} finger index
|
|
100
100
|
*/
|
|
101
|
-
enrollUser(user_id: string, temp_id: number): Promise<
|
|
101
|
+
enrollUser(user_id: string, temp_id: number): Promise<unknown>;
|
|
102
102
|
verifyUser(user_id: string): Promise<boolean>;
|
|
103
103
|
restartDevice(): Promise<void>;
|
|
104
104
|
getSizes(): Promise<FreeSizes>;
|
|
@@ -114,6 +114,7 @@ export default class Zklib {
|
|
|
114
114
|
IPAddress: string;
|
|
115
115
|
NetMask: string;
|
|
116
116
|
GATEIPAddress: string;
|
|
117
|
+
TCPPort: string;
|
|
117
118
|
}>;
|
|
118
119
|
}
|
|
119
120
|
export type { Attendance, User, Finger, DeviceInfo, Zklib };
|