@7365admin1/core 3.38.0 → 3.40.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.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +247 -105
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +247 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.40.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fb9ac66: release changes to prod August 4
|
|
8
|
+
|
|
9
|
+
## 3.39.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 7bd9e97: VMS pass and key bugfixes, nfc patrol search filter, etc
|
|
14
|
+
|
|
3
15
|
## 3.38.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as mongodb from 'mongodb';
|
|
2
|
-
import { ObjectId, ClientSession, Db, Collection, Document } from 'mongodb';
|
|
2
|
+
import { ObjectId, ClientSession, Db, Collection, Document, AggregateOptions } from 'mongodb';
|
|
3
3
|
import Joi from 'joi';
|
|
4
4
|
import { Request, Response, NextFunction } from 'express';
|
|
5
5
|
import * as bson from 'bson';
|
|
@@ -2415,6 +2415,7 @@ declare function useVehicleRepo(): {
|
|
|
2415
2415
|
}>;
|
|
2416
2416
|
getVehicleBySiteAndPlateNumber: (plateNumber: string, site: string | ObjectId, category: string | ObjectId, status: string) => Promise<TVehicle | null>;
|
|
2417
2417
|
getBlocklistedVehicleByPlateNumber: (plateNumber: string, site?: string) => Promise<bson.Document>;
|
|
2418
|
+
findOne: (query: Record<string, any>) => Promise<TVehicle | null>;
|
|
2418
2419
|
};
|
|
2419
2420
|
|
|
2420
2421
|
declare function formatDahuaDate(date: Date): string;
|
|
@@ -2509,16 +2510,20 @@ declare function useSiteCameraRepo(): {
|
|
|
2509
2510
|
direction?: string | string[];
|
|
2510
2511
|
page?: number;
|
|
2511
2512
|
limit?: number;
|
|
2513
|
+
status?: string;
|
|
2512
2514
|
}) => Promise<{
|
|
2513
2515
|
pageRange: string;
|
|
2514
2516
|
pages: number;
|
|
2515
2517
|
items: Array<TSiteCamera>;
|
|
2516
2518
|
}>;
|
|
2519
|
+
findMany: (query: object, project?: object, options?: AggregateOptions) => Promise<Document[]>;
|
|
2520
|
+
findOne: (query: object, project?: object, options?: AggregateOptions) => Promise<Document | null>;
|
|
2517
2521
|
};
|
|
2518
2522
|
|
|
2519
2523
|
declare function useSiteCameraService(): {
|
|
2520
2524
|
add: (value: TSiteCamera) => Promise<"CCTV(s) added successfully." | "ANPR(s) added successfully.">;
|
|
2521
2525
|
listenToCapturedPlateNumber: (onDetected?: ((data: any) => void) | undefined) => Promise<void>;
|
|
2526
|
+
updateById: (id: string, value: Partial<TSiteCamera>) => Promise<string>;
|
|
2522
2527
|
};
|
|
2523
2528
|
|
|
2524
2529
|
declare function useSiteCameraController(): {
|
|
@@ -6107,8 +6112,8 @@ declare function useNfcPatrolLogRepo(): {
|
|
|
6107
6112
|
date?: string | undefined;
|
|
6108
6113
|
type?: "month" | undefined;
|
|
6109
6114
|
route?: {
|
|
6110
|
-
_id
|
|
6111
|
-
startTime
|
|
6115
|
+
_id?: string | ObjectId | undefined;
|
|
6116
|
+
startTime?: string | undefined;
|
|
6112
6117
|
} | undefined;
|
|
6113
6118
|
}, session?: ClientSession) => Promise<{
|
|
6114
6119
|
items: any[];
|
|
@@ -6139,7 +6144,7 @@ declare function useNfcPatrolLogService(): {
|
|
|
6139
6144
|
|
|
6140
6145
|
declare function useNfcPatrolLogController(): {
|
|
6141
6146
|
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6142
|
-
getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void
|
|
6147
|
+
getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
|
|
6143
6148
|
completeCheckpoint: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6144
6149
|
getLog: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6145
6150
|
sign: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|