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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ZTCP } from './ztcp';
2
- import { ZUDP } from './zudp';
3
- import { User } from './models/User';
4
- import { Finger } from './models/Finger';
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<Buffer<ArrayBufferLike>>;
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<boolean>;
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 };