hik-iot-sdk 1.0.0

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.
Files changed (50) hide show
  1. package/README.md +467 -0
  2. package/dist/core/__tests__/crypto.test.d.ts +1 -0
  3. package/dist/core/__tests__/crypto.test.js +68 -0
  4. package/dist/core/auth.d.ts +51 -0
  5. package/dist/core/auth.js +292 -0
  6. package/dist/core/config.d.ts +31 -0
  7. package/dist/core/config.js +11 -0
  8. package/dist/core/crypto.d.ts +12 -0
  9. package/dist/core/crypto.js +88 -0
  10. package/dist/core/errors.d.ts +45 -0
  11. package/dist/core/errors.js +61 -0
  12. package/dist/core/http.d.ts +29 -0
  13. package/dist/core/http.js +134 -0
  14. package/dist/index.d.ts +8 -0
  15. package/dist/index.js +10 -0
  16. package/dist/modules/access/access.schema.d.ts +2307 -0
  17. package/dist/modules/access/access.schema.js +353 -0
  18. package/dist/modules/access/access.service.d.ts +55 -0
  19. package/dist/modules/access/access.service.js +145 -0
  20. package/dist/modules/access/access.types.d.ts +307 -0
  21. package/dist/modules/access/access.types.js +3 -0
  22. package/dist/modules/access/index.d.ts +2 -0
  23. package/dist/modules/access/index.js +20 -0
  24. package/dist/modules/card/card.schema.d.ts +27 -0
  25. package/dist/modules/card/card.schema.js +12 -0
  26. package/dist/modules/card/card.service.d.ts +10 -0
  27. package/dist/modules/card/card.service.js +50 -0
  28. package/dist/modules/card/card.types.d.ts +18 -0
  29. package/dist/modules/card/card.types.js +2 -0
  30. package/dist/modules/device/device.schema.d.ts +258 -0
  31. package/dist/modules/device/device.schema.js +44 -0
  32. package/dist/modules/device/device.service.d.ts +14 -0
  33. package/dist/modules/device/device.service.js +69 -0
  34. package/dist/modules/device/device.types.d.ts +46 -0
  35. package/dist/modules/device/device.types.js +2 -0
  36. package/dist/modules/face/face.schema.d.ts +27 -0
  37. package/dist/modules/face/face.schema.js +12 -0
  38. package/dist/modules/face/face.service.d.ts +9 -0
  39. package/dist/modules/face/face.service.js +42 -0
  40. package/dist/modules/face/face.types.d.ts +17 -0
  41. package/dist/modules/face/face.types.js +2 -0
  42. package/dist/modules/person/person.schema.d.ts +270 -0
  43. package/dist/modules/person/person.schema.js +42 -0
  44. package/dist/modules/person/person.service.d.ts +16 -0
  45. package/dist/modules/person/person.service.js +88 -0
  46. package/dist/modules/person/person.types.d.ts +65 -0
  47. package/dist/modules/person/person.types.js +2 -0
  48. package/dist/sdk.d.ts +60 -0
  49. package/dist/sdk.js +106 -0
  50. package/package.json +29 -0
@@ -0,0 +1,258 @@
1
+ import { z } from 'zod';
2
+ export declare const DeviceTraceIdResponseSchema: z.ZodObject<{
3
+ code: z.ZodNumber;
4
+ msg: z.ZodString;
5
+ data: z.ZodObject<{
6
+ traceId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ traceId: string;
9
+ }, {
10
+ traceId: string;
11
+ }>;
12
+ detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ code: number;
15
+ msg: string;
16
+ data: {
17
+ traceId: string;
18
+ };
19
+ detail?: string | null | undefined;
20
+ }, {
21
+ code: number;
22
+ msg: string;
23
+ data: {
24
+ traceId: string;
25
+ };
26
+ detail?: string | null | undefined;
27
+ }>;
28
+ export declare const StorageCountSchema: z.ZodObject<{
29
+ count: z.ZodNumber;
30
+ maxNum: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ count: number;
33
+ maxNum: number;
34
+ }, {
35
+ count: number;
36
+ maxNum: number;
37
+ }>;
38
+ export declare const StorageCountResponseSchema: z.ZodObject<{
39
+ code: z.ZodNumber;
40
+ msg: z.ZodString;
41
+ data: z.ZodObject<{
42
+ UserInfo: z.ZodOptional<z.ZodObject<{
43
+ count: z.ZodNumber;
44
+ maxNum: z.ZodNumber;
45
+ }, "strip", z.ZodTypeAny, {
46
+ count: number;
47
+ maxNum: number;
48
+ }, {
49
+ count: number;
50
+ maxNum: number;
51
+ }>>;
52
+ FaceAccess: z.ZodOptional<z.ZodObject<{
53
+ count: z.ZodNumber;
54
+ maxNum: z.ZodNumber;
55
+ }, "strip", z.ZodTypeAny, {
56
+ count: number;
57
+ maxNum: number;
58
+ }, {
59
+ count: number;
60
+ maxNum: number;
61
+ }>>;
62
+ CardInfo: z.ZodOptional<z.ZodObject<{
63
+ count: z.ZodNumber;
64
+ maxNum: z.ZodNumber;
65
+ }, "strip", z.ZodTypeAny, {
66
+ count: number;
67
+ maxNum: number;
68
+ }, {
69
+ count: number;
70
+ maxNum: number;
71
+ }>>;
72
+ FingerPrint: z.ZodOptional<z.ZodObject<{
73
+ count: z.ZodNumber;
74
+ maxNum: z.ZodNumber;
75
+ }, "strip", z.ZodTypeAny, {
76
+ count: number;
77
+ maxNum: number;
78
+ }, {
79
+ count: number;
80
+ maxNum: number;
81
+ }>>;
82
+ AcsEvent: z.ZodOptional<z.ZodObject<{
83
+ count: z.ZodNumber;
84
+ maxNum: z.ZodNumber;
85
+ }, "strip", z.ZodTypeAny, {
86
+ count: number;
87
+ maxNum: number;
88
+ }, {
89
+ count: number;
90
+ maxNum: number;
91
+ }>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ UserInfo?: {
94
+ count: number;
95
+ maxNum: number;
96
+ } | undefined;
97
+ FaceAccess?: {
98
+ count: number;
99
+ maxNum: number;
100
+ } | undefined;
101
+ CardInfo?: {
102
+ count: number;
103
+ maxNum: number;
104
+ } | undefined;
105
+ FingerPrint?: {
106
+ count: number;
107
+ maxNum: number;
108
+ } | undefined;
109
+ AcsEvent?: {
110
+ count: number;
111
+ maxNum: number;
112
+ } | undefined;
113
+ }, {
114
+ UserInfo?: {
115
+ count: number;
116
+ maxNum: number;
117
+ } | undefined;
118
+ FaceAccess?: {
119
+ count: number;
120
+ maxNum: number;
121
+ } | undefined;
122
+ CardInfo?: {
123
+ count: number;
124
+ maxNum: number;
125
+ } | undefined;
126
+ FingerPrint?: {
127
+ count: number;
128
+ maxNum: number;
129
+ } | undefined;
130
+ AcsEvent?: {
131
+ count: number;
132
+ maxNum: number;
133
+ } | undefined;
134
+ }>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ code: number;
137
+ msg: string;
138
+ data: {
139
+ UserInfo?: {
140
+ count: number;
141
+ maxNum: number;
142
+ } | undefined;
143
+ FaceAccess?: {
144
+ count: number;
145
+ maxNum: number;
146
+ } | undefined;
147
+ CardInfo?: {
148
+ count: number;
149
+ maxNum: number;
150
+ } | undefined;
151
+ FingerPrint?: {
152
+ count: number;
153
+ maxNum: number;
154
+ } | undefined;
155
+ AcsEvent?: {
156
+ count: number;
157
+ maxNum: number;
158
+ } | undefined;
159
+ };
160
+ }, {
161
+ code: number;
162
+ msg: string;
163
+ data: {
164
+ UserInfo?: {
165
+ count: number;
166
+ maxNum: number;
167
+ } | undefined;
168
+ FaceAccess?: {
169
+ count: number;
170
+ maxNum: number;
171
+ } | undefined;
172
+ CardInfo?: {
173
+ count: number;
174
+ maxNum: number;
175
+ } | undefined;
176
+ FingerPrint?: {
177
+ count: number;
178
+ maxNum: number;
179
+ } | undefined;
180
+ AcsEvent?: {
181
+ count: number;
182
+ maxNum: number;
183
+ } | undefined;
184
+ };
185
+ }>;
186
+ export declare const DoorStatusResponseSchema: z.ZodObject<{
187
+ code: z.ZodNumber;
188
+ msg: z.ZodString;
189
+ data: z.ZodObject<{
190
+ doorLockStatus: z.ZodArray<z.ZodString, "many">;
191
+ magneticStatus: z.ZodArray<z.ZodString, "many">;
192
+ doorStatus: z.ZodArray<z.ZodString, "many">;
193
+ antiSneakStatus: z.ZodOptional<z.ZodString>;
194
+ hostAntiDismantleStatus: z.ZodOptional<z.ZodString>;
195
+ cardReaderOnlineStatus: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
196
+ cardReaderAntiDismantleStatus: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
197
+ cardReaderVerifyMode: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
198
+ netStatus: z.ZodOptional<z.ZodString>;
199
+ ezvizStatus: z.ZodOptional<z.ZodString>;
200
+ wifiStatus: z.ZodOptional<z.ZodString>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ doorLockStatus: string[];
203
+ magneticStatus: string[];
204
+ doorStatus: string[];
205
+ antiSneakStatus?: string | undefined;
206
+ hostAntiDismantleStatus?: string | undefined;
207
+ cardReaderOnlineStatus?: string[] | undefined;
208
+ cardReaderAntiDismantleStatus?: string[] | undefined;
209
+ cardReaderVerifyMode?: string[] | undefined;
210
+ netStatus?: string | undefined;
211
+ ezvizStatus?: string | undefined;
212
+ wifiStatus?: string | undefined;
213
+ }, {
214
+ doorLockStatus: string[];
215
+ magneticStatus: string[];
216
+ doorStatus: string[];
217
+ antiSneakStatus?: string | undefined;
218
+ hostAntiDismantleStatus?: string | undefined;
219
+ cardReaderOnlineStatus?: string[] | undefined;
220
+ cardReaderAntiDismantleStatus?: string[] | undefined;
221
+ cardReaderVerifyMode?: string[] | undefined;
222
+ netStatus?: string | undefined;
223
+ ezvizStatus?: string | undefined;
224
+ wifiStatus?: string | undefined;
225
+ }>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ code: number;
228
+ msg: string;
229
+ data: {
230
+ doorLockStatus: string[];
231
+ magneticStatus: string[];
232
+ doorStatus: string[];
233
+ antiSneakStatus?: string | undefined;
234
+ hostAntiDismantleStatus?: string | undefined;
235
+ cardReaderOnlineStatus?: string[] | undefined;
236
+ cardReaderAntiDismantleStatus?: string[] | undefined;
237
+ cardReaderVerifyMode?: string[] | undefined;
238
+ netStatus?: string | undefined;
239
+ ezvizStatus?: string | undefined;
240
+ wifiStatus?: string | undefined;
241
+ };
242
+ }, {
243
+ code: number;
244
+ msg: string;
245
+ data: {
246
+ doorLockStatus: string[];
247
+ magneticStatus: string[];
248
+ doorStatus: string[];
249
+ antiSneakStatus?: string | undefined;
250
+ hostAntiDismantleStatus?: string | undefined;
251
+ cardReaderOnlineStatus?: string[] | undefined;
252
+ cardReaderAntiDismantleStatus?: string[] | undefined;
253
+ cardReaderVerifyMode?: string[] | undefined;
254
+ netStatus?: string | undefined;
255
+ ezvizStatus?: string | undefined;
256
+ wifiStatus?: string | undefined;
257
+ };
258
+ }>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DoorStatusResponseSchema = exports.StorageCountResponseSchema = exports.StorageCountSchema = exports.DeviceTraceIdResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.DeviceTraceIdResponseSchema = zod_1.z.object({
6
+ code: zod_1.z.number(),
7
+ msg: zod_1.z.string(),
8
+ data: zod_1.z.object({
9
+ traceId: zod_1.z.string(),
10
+ }),
11
+ detail: zod_1.z.string().nullable().optional(),
12
+ });
13
+ exports.StorageCountSchema = zod_1.z.object({
14
+ count: zod_1.z.number(),
15
+ maxNum: zod_1.z.number(),
16
+ });
17
+ exports.StorageCountResponseSchema = zod_1.z.object({
18
+ code: zod_1.z.number(),
19
+ msg: zod_1.z.string(),
20
+ data: zod_1.z.object({
21
+ UserInfo: exports.StorageCountSchema.optional(),
22
+ FaceAccess: exports.StorageCountSchema.optional(),
23
+ CardInfo: exports.StorageCountSchema.optional(),
24
+ FingerPrint: exports.StorageCountSchema.optional(),
25
+ AcsEvent: exports.StorageCountSchema.optional(),
26
+ }),
27
+ });
28
+ exports.DoorStatusResponseSchema = zod_1.z.object({
29
+ code: zod_1.z.number(),
30
+ msg: zod_1.z.string(),
31
+ data: zod_1.z.object({
32
+ doorLockStatus: zod_1.z.array(zod_1.z.string()),
33
+ magneticStatus: zod_1.z.array(zod_1.z.string()),
34
+ doorStatus: zod_1.z.array(zod_1.z.string()),
35
+ antiSneakStatus: zod_1.z.string().optional(),
36
+ hostAntiDismantleStatus: zod_1.z.string().optional(),
37
+ cardReaderOnlineStatus: zod_1.z.array(zod_1.z.string()).optional(),
38
+ cardReaderAntiDismantleStatus: zod_1.z.array(zod_1.z.string()).optional(),
39
+ cardReaderVerifyMode: zod_1.z.array(zod_1.z.string()).optional(),
40
+ netStatus: zod_1.z.string().optional(),
41
+ ezvizStatus: zod_1.z.string().optional(),
42
+ wifiStatus: zod_1.z.string().optional(),
43
+ }),
44
+ });
@@ -0,0 +1,14 @@
1
+ import type { HttpClient } from '../../core/http';
2
+ import type { RemoteControlDoorInput, GetDoorStatusInput, GetStorageCountInput, ClearStorageInput, DoorStatusResponse, StorageCountResponse, DeviceTraceIdResponse } from './device.types';
3
+ export declare class DeviceService {
4
+ private readonly http;
5
+ constructor(http: HttpClient);
6
+ remoteControlDoor(input: RemoteControlDoorInput): Promise<DeviceTraceIdResponse>;
7
+ openDoor(deviceSerial: string, doorNo?: number): Promise<DeviceTraceIdResponse>;
8
+ closeDoor(deviceSerial: string, doorNo?: number): Promise<DeviceTraceIdResponse>;
9
+ setDoorAlwaysOpen(deviceSerial: string, doorNo?: number): Promise<DeviceTraceIdResponse>;
10
+ setDoorAlwaysClose(deviceSerial: string, doorNo?: number): Promise<DeviceTraceIdResponse>;
11
+ getDoorStatus(input: GetDoorStatusInput): Promise<DoorStatusResponse>;
12
+ getStorageCount(input: GetStorageCountInput): Promise<StorageCountResponse>;
13
+ clearStorage(input: ClearStorageInput): Promise<void>;
14
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceService = void 0;
4
+ const device_schema_1 = require("./device.schema");
5
+ class DeviceService {
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async remoteControlDoor(input) {
10
+ const { deviceSerial, cmd, doorNo = 1, controlType = 'monitor', channelNo = 1, } = input;
11
+ const response = await this.http.post('/device/direct/v1/doorControl/remoteControlDoor', {
12
+ deviceSerial,
13
+ payload: {
14
+ cmd,
15
+ doorNo,
16
+ controlType,
17
+ channelNo,
18
+ },
19
+ }, device_schema_1.DeviceTraceIdResponseSchema);
20
+ return response.data;
21
+ }
22
+ async openDoor(deviceSerial, doorNo = 1) {
23
+ return this.remoteControlDoor({
24
+ deviceSerial,
25
+ cmd: 'open',
26
+ doorNo,
27
+ });
28
+ }
29
+ async closeDoor(deviceSerial, doorNo = 1) {
30
+ return this.remoteControlDoor({
31
+ deviceSerial,
32
+ cmd: 'close',
33
+ doorNo,
34
+ });
35
+ }
36
+ async setDoorAlwaysOpen(deviceSerial, doorNo = 1) {
37
+ return this.remoteControlDoor({
38
+ deviceSerial,
39
+ cmd: 'alwaysOpen',
40
+ doorNo,
41
+ });
42
+ }
43
+ async setDoorAlwaysClose(deviceSerial, doorNo = 1) {
44
+ return this.remoteControlDoor({
45
+ deviceSerial,
46
+ cmd: 'alwaysClose',
47
+ doorNo,
48
+ });
49
+ }
50
+ async getDoorStatus(input) {
51
+ const { deviceSerial } = input;
52
+ const response = await this.http.post('/device/direct/v1/acsWorkStatus/getAttrs', { deviceSerial }, device_schema_1.DoorStatusResponseSchema);
53
+ return response.data;
54
+ }
55
+ async getStorageCount(input) {
56
+ const { deviceSerial } = input;
57
+ const response = await this.http.post('/device/direct/v1/acsStorage/count', { deviceSerial }, device_schema_1.StorageCountResponseSchema);
58
+ return response.data;
59
+ }
60
+ async clearStorage(input) {
61
+ const { deviceSerial, opts } = input;
62
+ const requestData = { deviceSerial };
63
+ if (opts && opts.length > 0) {
64
+ requestData.opts = opts;
65
+ }
66
+ await this.http.post('/device/direct/v1/acsStorage/clear', requestData);
67
+ }
68
+ }
69
+ exports.DeviceService = DeviceService;
@@ -0,0 +1,46 @@
1
+ export type DoorControlCmd = 'open' | 'close' | 'alwaysOpen' | 'alwaysClose' | 'visitorCallLadder' | 'householdCallLadder';
2
+ export type ControlType = 'monitor' | 'calling';
3
+ export interface RemoteControlDoorInput {
4
+ deviceSerial: string;
5
+ cmd: DoorControlCmd;
6
+ doorNo?: number;
7
+ controlType?: ControlType;
8
+ channelNo?: number;
9
+ }
10
+ export interface GetDoorStatusInput {
11
+ deviceSerial: string;
12
+ }
13
+ export interface GetStorageCountInput {
14
+ deviceSerial: string;
15
+ }
16
+ export interface ClearStorageInput {
17
+ deviceSerial: string;
18
+ opts?: Array<'supportUserInfo' | 'supportCardInfo' | 'supportFingerPrintCfg' | 'supportDoorStatusPlanTemplate' | 'supportHealthCodeCfg'>;
19
+ }
20
+ export interface DoorStatusResponse {
21
+ doorLockStatus: string[];
22
+ magneticStatus: string[];
23
+ doorStatus: string[];
24
+ antiSneakStatus?: string;
25
+ hostAntiDismantleStatus?: string;
26
+ cardReaderOnlineStatus?: string[];
27
+ cardReaderAntiDismantleStatus?: string[];
28
+ cardReaderVerifyMode?: string[];
29
+ netStatus?: string;
30
+ ezvizStatus?: string;
31
+ wifiStatus?: string;
32
+ }
33
+ export interface StorageCount {
34
+ count: number;
35
+ maxNum: number;
36
+ }
37
+ export interface StorageCountResponse {
38
+ UserInfo?: StorageCount;
39
+ FaceAccess?: StorageCount;
40
+ CardInfo?: StorageCount;
41
+ FingerPrint?: StorageCount;
42
+ AcsEvent?: StorageCount;
43
+ }
44
+ export interface DeviceTraceIdResponse {
45
+ traceId: string;
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ export declare const FaceTraceIdResponseSchema: z.ZodObject<{
3
+ code: z.ZodNumber;
4
+ msg: z.ZodString;
5
+ data: z.ZodObject<{
6
+ traceId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ traceId: string;
9
+ }, {
10
+ traceId: string;
11
+ }>;
12
+ detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ code: number;
15
+ msg: string;
16
+ data: {
17
+ traceId: string;
18
+ };
19
+ detail?: string | null | undefined;
20
+ }, {
21
+ code: number;
22
+ msg: string;
23
+ data: {
24
+ traceId: string;
25
+ };
26
+ detail?: string | null | undefined;
27
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FaceTraceIdResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.FaceTraceIdResponseSchema = zod_1.z.object({
6
+ code: zod_1.z.number(),
7
+ msg: zod_1.z.string(),
8
+ data: zod_1.z.object({
9
+ traceId: zod_1.z.string(),
10
+ }),
11
+ detail: zod_1.z.string().nullable().optional(),
12
+ });
@@ -0,0 +1,9 @@
1
+ import type { HttpClient } from '../../core/http';
2
+ import type { AddFaceInput, DeleteFaceInput, FaceTraceIdResponse } from './face.types';
3
+ export declare class FaceService {
4
+ private readonly http;
5
+ constructor(http: HttpClient);
6
+ add(input: AddFaceInput): Promise<FaceTraceIdResponse>;
7
+ update(input: AddFaceInput): Promise<FaceTraceIdResponse>;
8
+ delete(input: DeleteFaceInput): Promise<FaceTraceIdResponse>;
9
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FaceService = void 0;
4
+ const face_schema_1 = require("./face.schema");
5
+ class FaceService {
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ async add(input) {
10
+ const { deviceSerial, employeeNo, faceURL, faceLibType = 'blackFD', faceDbId = '1', } = input;
11
+ const response = await this.http.post('/device/direct/v1/faceAccess/addOneRecord', {
12
+ deviceSerial,
13
+ payload: {
14
+ faceInfo: {
15
+ employeeNo,
16
+ faceURL,
17
+ faceLibType,
18
+ faceDbId,
19
+ },
20
+ },
21
+ }, face_schema_1.FaceTraceIdResponseSchema);
22
+ return response.data;
23
+ }
24
+ async update(input) {
25
+ return this.add(input);
26
+ }
27
+ async delete(input) {
28
+ const { deviceSerial, employeeNo, faceLibType = 'blackFD', faceDbId = '1', } = input;
29
+ const response = await this.http.post('/device/direct/v1/faceAccess/deleteByKey', {
30
+ deviceSerial,
31
+ payload: {
32
+ faceInfo: {
33
+ employeeNo,
34
+ faceDbId,
35
+ faceLibType,
36
+ },
37
+ },
38
+ }, face_schema_1.FaceTraceIdResponseSchema);
39
+ return response.data;
40
+ }
41
+ }
42
+ exports.FaceService = FaceService;
@@ -0,0 +1,17 @@
1
+ export type FaceLibType = 'blackFD' | 'staticFD';
2
+ export interface AddFaceInput {
3
+ deviceSerial: string;
4
+ employeeNo: string;
5
+ faceURL: string;
6
+ faceLibType?: FaceLibType;
7
+ faceDbId?: string;
8
+ }
9
+ export interface DeleteFaceInput {
10
+ deviceSerial: string;
11
+ employeeNo: string;
12
+ faceLibType?: FaceLibType;
13
+ faceDbId?: string;
14
+ }
15
+ export interface FaceTraceIdResponse {
16
+ traceId: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });