@7365admin1/core 2.61.0 → 2.63.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,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.63.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cb66856: get latest changes today
8
+
9
+ ## 2.62.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 28c46de: get latest changes today
14
+
3
15
  ## 2.61.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -382,7 +382,7 @@ declare function useVerificationRepo(): {
382
382
  createTextIndex: () => Promise<void>;
383
383
  add: (value: TVerification, session?: ClientSession) => Promise<ObjectId>;
384
384
  getById: (_id: string | ObjectId) => Promise<TVerification | null>;
385
- getVerifications: ({ search, page, limit, sort, status, app, type, email, }: {
385
+ getVerifications: ({ search, page, limit, sort, status, app, type, email, siteId, orgId, }: {
386
386
  search?: string | undefined;
387
387
  page?: number | undefined;
388
388
  limit?: number | undefined;
@@ -391,6 +391,8 @@ declare function useVerificationRepo(): {
391
391
  app?: string | undefined;
392
392
  type?: Record<string, any> | undefined;
393
393
  email?: string | undefined;
394
+ siteId?: string | undefined;
395
+ orgId?: string | undefined;
394
396
  }) => Promise<{}>;
395
397
  getByIdByType: (type: string) => Promise<TVerification[]>;
396
398
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
@@ -2081,7 +2083,7 @@ declare function useDahuaService(): {
2081
2083
  }) => Promise<urllib.HttpClientResponse<any>>;
2082
2084
  };
2083
2085
 
2084
- type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo">>;
2086
+ type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo" | "type">>;
2085
2087
  declare enum VehicleType {
2086
2088
  WHITELIST = "whitelist",
2087
2089
  BLOCKLIST = "blocklist"
@@ -2300,6 +2302,8 @@ declare function useVehicleService(): {
2300
2302
  [key: number]: any;
2301
2303
  };
2302
2304
  }>;
2305
+ blocklistVehicles: (_id: string, value: TVehicle) => Promise<void>;
2306
+ removeFromBlocklist: (_id: string, value: TVehicle) => Promise<void>;
2303
2307
  };
2304
2308
 
2305
2309
  declare function useVehicleController(): {
@@ -2316,6 +2320,8 @@ declare function useVehicleController(): {
2316
2320
  uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2317
2321
  getSpecificVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2318
2322
  getBlocklistedVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2323
+ blocklistVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2324
+ removeFromBlocklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2319
2325
  };
2320
2326
 
2321
2327
  declare function useSiteCameraRepo(): {
@@ -3857,7 +3863,7 @@ declare function MBulletinBoard(value: TBulletinBoard): {
3857
3863
  declare const bulletin_boards_namespace_collection = "bulletin-boards";
3858
3864
  declare function useBulletinBoardRepo(): {
3859
3865
  add: (value: TBulletinBoard, session?: ClientSession) => Promise<ObjectId>;
3860
- getAll: ({ search, page, limit, sort, site, status, recipients, }: {
3866
+ getAll: ({ search, page, limit, sort, site, status, recipients, expiration, }: {
3861
3867
  search?: string | undefined;
3862
3868
  page?: number | undefined;
3863
3869
  limit?: number | undefined;
@@ -3865,6 +3871,7 @@ declare function useBulletinBoardRepo(): {
3865
3871
  site: string | ObjectId;
3866
3872
  status: string;
3867
3873
  recipients: Array<string>;
3874
+ expiration?: "yes" | "no" | undefined;
3868
3875
  }, session?: ClientSession) => Promise<{
3869
3876
  items: any[];
3870
3877
  pages: number;
@@ -4733,6 +4740,11 @@ declare function UseAccessManagementRepo(): {
4733
4740
  visitorCheckoutRepo: ({ userId }: {
4734
4741
  userId: string;
4735
4742
  }) => Promise<string>;
4743
+ uploadTemplateRepo: ({ site, id, name }: {
4744
+ site: string | ObjectId;
4745
+ id: string | ObjectId;
4746
+ name: string;
4747
+ }) => Promise<mongodb.UpdateResult<bson.Document>>;
4736
4748
  };
4737
4749
 
4738
4750
  declare function useAccessManagementController(): {
@@ -4775,6 +4787,7 @@ declare function useAccessManagementController(): {
4775
4787
  getTransactions: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4776
4788
  assignMultipleCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4777
4789
  visitorCheckout: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4790
+ uploadTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4778
4791
  };
4779
4792
 
4780
4793
  declare const DEVICE_STATUS: {
@@ -4976,12 +4989,14 @@ declare function MBulletinVideo(value: TBulletinVideo): {
4976
4989
 
4977
4990
  declare function useBulletinVideoRepo(): {
4978
4991
  add: (value: TBulletinVideo, session?: ClientSession) => Promise<ObjectId>;
4979
- getAll: ({ search, page, limit, sort, site, }: {
4992
+ getAll: ({ search, page, limit, sort, site, startDate, endDate, }: {
4980
4993
  search?: string | undefined;
4981
4994
  page?: number | undefined;
4982
4995
  limit?: number | undefined;
4983
4996
  sort?: Record<string, any> | undefined;
4984
4997
  site: string | ObjectId;
4998
+ startDate?: string | undefined;
4999
+ endDate?: string | undefined;
4985
5000
  }, session?: ClientSession) => Promise<{
4986
5001
  items: any[];
4987
5002
  pages: number;