@7365admin1/core 2.15.0 → 2.16.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c09dc55: get latest changes
8
+
3
9
  ## 2.15.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1771,7 +1771,7 @@ declare function useDahuaService(): {
1771
1771
 
1772
1772
  type TVehicle = {
1773
1773
  _id?: ObjectId;
1774
- plateNumber: string;
1774
+ plateNumber: string | string[];
1775
1775
  type: string;
1776
1776
  category: string;
1777
1777
  name: string;
@@ -1819,7 +1819,7 @@ declare enum ANPRMode {
1819
1819
  }
1820
1820
  declare const vehicleSchema: Joi.ObjectSchema<any>;
1821
1821
  declare function MVehicle(value: TVehicle): {
1822
- plateNumber: string;
1822
+ plateNumber: string | string[];
1823
1823
  type: string;
1824
1824
  category: string;
1825
1825
  name: string;
@@ -1886,10 +1886,10 @@ declare function useVehicleRepo(): {
1886
1886
  deleteVehicle: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
1887
1887
  getByPlaceNumber: (value: string) => Promise<{}>;
1888
1888
  getVehicleByPlateNumber: (plateNumber: string) => Promise<TVehicle | null>;
1889
- getVehiclesByNRIC: ({ page, limit, search, sort, }: {
1889
+ getVehiclesByNRIC: ({ page, limit, nric, sort, }: {
1890
1890
  page?: number | undefined;
1891
1891
  limit?: number | undefined;
1892
- search?: string | undefined;
1892
+ nric?: string | undefined;
1893
1893
  sort?: Record<string, any> | undefined;
1894
1894
  }) => Promise<{}>;
1895
1895
  deleteExpiredVehicles: (session?: ClientSession) => Promise<number>;
@@ -2419,7 +2419,7 @@ declare function usePersonRepo(): {
2419
2419
  createTextIndex: () => Promise<void>;
2420
2420
  getPersonByPlateNumber: (plateNumber: string) => Promise<TPerson | null>;
2421
2421
  getByNRIC: (value: string) => Promise<TPerson | null>;
2422
- createIndex: () => Promise<void>;
2422
+ createIndexes: () => Promise<void>;
2423
2423
  getPersonByPhoneNumber: (value: string) => Promise<TPerson | null>;
2424
2424
  getPeopleByUnit: ({ status, type, unit, }: {
2425
2425
  status: string;
@@ -2428,6 +2428,13 @@ declare function usePersonRepo(): {
2428
2428
  }, session?: ClientSession) => Promise<TPerson[]>;
2429
2429
  getCompany: (search?: string) => Promise<any[] | TPerson>;
2430
2430
  getPeopleByPlateNumber: (plateNumber: string) => Promise<TPerson[]>;
2431
+ getPeopleByNRIC: ({ page, limit, nric, sort, site, }: {
2432
+ page?: number | undefined;
2433
+ limit?: number | undefined;
2434
+ nric?: string | undefined;
2435
+ sort?: Record<string, any> | undefined;
2436
+ site: string;
2437
+ }) => Promise<{}>;
2431
2438
  };
2432
2439
 
2433
2440
  declare function usePersonController(): {
@@ -2440,6 +2447,7 @@ declare function usePersonController(): {
2440
2447
  getPeopleByUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2441
2448
  getCompany: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2442
2449
  getPeopleByPlateNumber: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2450
+ getPeopleByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2443
2451
  };
2444
2452
 
2445
2453
  type TRobotMetadata = {
@@ -4016,6 +4024,10 @@ declare function UseAccessManagementRepo(): {
4016
4024
  user: mongodb.WithId<bson.Document> | null;
4017
4025
  _id: ObjectId;
4018
4026
  } | null>;
4027
+ addQrTagRepo: (params: {
4028
+ payload: QrTagProps[];
4029
+ site: string;
4030
+ }) => Promise<mongodb.BulkWriteResult | undefined>;
4019
4031
  };
4020
4032
 
4021
4033
  declare function useAccessManagementController(): {
@@ -4042,6 +4054,7 @@ declare function useAccessManagementController(): {
4042
4054
  assignAccessCardToUnit: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4043
4055
  deleteCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4044
4056
  getCardDetails: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4057
+ addQrTag: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4045
4058
  };
4046
4059
 
4047
4060
  declare const DEVICE_STATUS: {